Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.203/1.203, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.109/2.109, allocations: 390.3 MB / 0.6647 GB, free: 284 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 59.91 kB / 0.8127 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5134/0.5146, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001477/0.5161, allocations: 0.5821 MB / 0.9503 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00049/0.5166, allocations: 343.9 kB / 0.9506 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.222e-05/0.5167, allocations: 0 / 0.9506 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.5167, allocations: 4 kB / 0.9506 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.664e-05/0.5167, allocations: 5.156 kB / 0.9506 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.5171, allocations: 115.4 kB / 0.9507 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.778e-05/0.5171, allocations: 13.2 kB / 0.9508 GB, free: 8.383 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.328e-05/0.5172, allocations: 1.594 kB / 0.9508 GB, free: 8.383 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.496e-05/0.5172, allocations: 2.594 kB / 0.9508 GB, free: 8.383 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.978e-05/0.5172, allocations: 5.344 kB / 0.9508 GB, free: 8.379 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.5172, allocations: 7.984 kB / 0.9508 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002855/0.5175, allocations: 271.6 kB / 0.951 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.5176, allocations: 1.188 kB / 0.951 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.574e-05/0.5176, allocations: 9.188 kB / 0.951 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.5177, allocations: 96.78 kB / 0.9511 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.5177, allocations: 0 / 0.9511 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.52e-07/0.5177, allocations: 1.156 kB / 0.9511 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.5177, allocations: 0 / 0.9511 GB, free: 8.148 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002388/0.518, allocations: 346.7 kB / 0.9515 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.518, allocations: 13.56 kB / 0.9515 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.323e-05/0.518, allocations: 34.75 kB / 0.9515 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.218e-05/0.5181, allocations: 3.344 kB / 0.9515 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.295e-05/0.5182, allocations: 172.2 kB / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.5182, allocations: 384 / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.5182, allocations: 1.656 kB / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.041e-05/0.5183, allocations: 35.08 kB / 0.9517 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.5183, allocations: 3.938 kB / 0.9517 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.5183, allocations: 0 / 0.9517 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.5183, allocations: 1.125 kB / 0.9517 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.745e-05/0.5183, allocations: 6.031 kB / 0.9517 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.864e-05/0.5184, allocations: 153.1 kB / 0.9519 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.44e-05/0.5185, allocations: 22.83 kB / 0.9519 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.488e-05/0.5185, allocations: 11.16 kB / 0.9519 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000538/0.519, allocations: 459.8 kB / 0.9523 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.59e-05/0.5191, allocations: 31.94 kB / 0.9524 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.001e-06/0.5191, allocations: 0 / 0.9524 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003737/0.5194, allocations: 252.1 kB / 0.9526 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.932e-05/0.5195, allocations: 60.77 kB / 0.9527 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.258e-05/0.5195, allocations: 96.77 kB / 0.9528 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.652e-06/0.5195, allocations: 25.7 kB / 0.9528 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.059e-05/0.5195, allocations: 80.14 kB / 0.9529 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.5196, allocations: 13.31 kB / 0.9529 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.5196, allocations: 13.62 kB / 0.9529 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.51e-05/0.5196, allocations: 320.4 kB / 0.9532 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.638e-05/0.5196, allocations: 11.06 kB / 0.9532 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.94e-05/0.5197, allocations: 14.91 kB / 0.9532 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.726e-05/0.5197, allocations: 27.67 kB / 0.9533 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.5197, allocations: 0 / 0.9533 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.007e-05/0.5198, allocations: 54.3 kB / 0.9533 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.5198, allocations: 12.66 kB / 0.9533 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.646e-06/0.5198, allocations: 4.062 kB / 0.9533 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.5198, allocations: 1.688 kB / 0.9533 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.851e-05/0.5199, allocations: 10.11 kB / 0.9533 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.5199, allocations: 0 / 0.9533 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.5199, allocations: 1.531 kB / 0.9533 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-06/0.5199, allocations: 0.8438 kB / 0.9533 GB, free: 5.699 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.52, allocations: 112 kB / 0.9534 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.52, allocations: 10.03 kB / 0.9535 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.5201, allocations: 64.52 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.5201, allocations: 0.7812 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.5201, allocations: 0.5625 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.5201, allocations: 3.984 kB / 0.9535 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.977e-05/0.5202, allocations: 154 kB / 0.9537 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.5202, allocations: 0 / 0.9537 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.432e-05/0.5202, allocations: 4.719 kB / 0.9537 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.5202, allocations: 9.125 kB / 0.9537 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.5203, allocations: 0 / 0.9537 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.5203, allocations: 5.469 kB / 0.9537 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.5203, allocations: 0 / 0.9537 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.5204, allocations: 81.86 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.297e-05/0.5204, allocations: 82.77 kB / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.5204, allocations: 0 / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.403e-05/0.5204, allocations: 1.594 kB / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.078e-05/0.5205, allocations: 1.312 kB / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.5205, allocations: 1.75 kB / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.391e-05/0.5205, allocations: 80.44 kB / 0.9539 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5205, allocations: 0 / 0.9539 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001919/0.5207, allocations: 26.89 kB / 0.9539 GB, free: 5.035 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003059/0.521, allocations: 0.6449 MB / 0.9546 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.939e-05/0.5211, allocations: 23.92 kB / 0.9546 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5211, allocations: 1.031 kB / 0.9546 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.386e-05/0.5211, allocations: 5.125 kB / 0.9546 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.5212, allocations: 3 kB / 0.9546 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005962/0.5218, allocations: 1.134 MB / 0.9557 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.428e-05/0.5219, allocations: 0.686 MB / 0.9564 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.659e-05/0.522, allocations: 9.438 kB / 0.9564 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.239e-05/0.522, allocations: 10 kB / 0.9564 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.522, allocations: 0 / 0.9564 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01622/0.5382, allocations: 1.707 MB / 0.9581 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.276, allocations: 12.12 kB / 0.9581 GB, free: 1.621 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,x,y,der(x),der(y) Variables in the result:delta,der(x),der(y),n,time,x,y