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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00129/0.00129, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 192.6 kB / 16.14 MB, free: 6.711 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.329/1.329, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.356/2.356, allocations: 390.2 MB / 0.6643 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 67.83 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5732/0.5745, allocations: 140.4 MB / 0.9491 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.00175/0.5763, allocations: 0.6478 MB / 0.9497 GB, free: 8.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005873/0.5769, allocations: 374.9 kB / 0.9501 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.45e-05/0.5769, allocations: 0 / 0.9501 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.494e-05/0.577, allocations: 1.375 kB / 0.9501 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.045e-05/0.577, allocations: 3.938 kB / 0.9501 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.5773, allocations: 72.59 kB / 0.9501 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.809e-05/0.5774, allocations: 12.06 kB / 0.9501 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.871e-05/0.5774, allocations: 6.734 kB / 0.9501 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.68e-05/0.5774, allocations: 5.375 kB / 0.9502 GB, free: 8.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.31e-05/0.5775, allocations: 6.688 kB / 0.9502 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.5775, allocations: 0 / 0.9502 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003106/0.5778, allocations: 274.9 kB / 0.9504 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.21e-05/0.5778, allocations: 3.984 kB / 0.9504 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.76e-05/0.5778, allocations: 1.906 kB / 0.9504 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.578, allocations: 92.64 kB / 0.9505 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.185e-06/0.578, allocations: 0 / 0.9505 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.12e-07/0.578, allocations: 1.25 kB / 0.9505 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.296e-06/0.578, allocations: 4 kB / 0.9505 GB, free: 8.18 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.0002684/0.5783, allocations: 342.1 kB / 0.9508 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.5783, allocations: 9.688 kB / 0.9509 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.1e-05/0.5784, allocations: 32.16 kB / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.044e-05/0.5784, allocations: 2.281 kB / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.262e-05/0.5785, allocations: 161.8 kB / 0.951 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.296e-06/0.5785, allocations: 4.375 kB / 0.951 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.5785, allocations: 2.781 kB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.863e-05/0.5786, allocations: 37.5 kB / 0.9511 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.5786, allocations: 3.938 kB / 0.9511 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-06/0.5786, allocations: 5.188 kB / 0.9511 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.5786, allocations: 0 / 0.9511 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.6e-05/0.5786, allocations: 2.312 kB / 0.9511 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.937e-05/0.5787, allocations: 156 kB / 0.9512 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.328e-05/0.5788, allocations: 18.67 kB / 0.9513 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.396e-05/0.5788, allocations: 19.66 kB / 0.9513 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005729/0.5794, allocations: 460.2 kB / 0.9517 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/0.5794, allocations: 31.75 kB / 0.9518 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.71e-07/0.5794, allocations: 4 kB / 0.9518 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003678/0.5798, allocations: 259.7 kB / 0.952 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.594e-05/0.5798, allocations: 51.41 kB / 0.9521 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.097e-05/0.5798, allocations: 96.31 kB / 0.9521 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.502e-06/0.5798, allocations: 30.98 kB / 0.9522 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.239e-05/0.5798, allocations: 84.48 kB / 0.9523 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.5799, allocations: 9.094 kB / 0.9523 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-05/0.5799, allocations: 17.53 kB / 0.9523 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.402e-05/0.5799, allocations: 316.2 kB / 0.9526 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.651e-05/0.58, allocations: 7.953 kB / 0.9526 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.02e-05/0.58, allocations: 19.03 kB / 0.9526 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.777e-05/0.58, allocations: 30.34 kB / 0.9526 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.58, allocations: 0 / 0.9526 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.121e-05/0.5801, allocations: 54.56 kB / 0.9527 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.5801, allocations: 8.219 kB / 0.9527 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.5801, allocations: 1.562 kB / 0.9527 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.5802, allocations: 0 / 0.9527 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.918e-05/0.5802, allocations: 6.094 kB / 0.9527 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.5802, allocations: 5.328 kB / 0.9527 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.789e-05/0.5802, allocations: 1.281 kB / 0.9527 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.5803, allocations: 9.047 kB / 0.9527 GB, free: 5.727 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.773e-05/0.5803, allocations: 119.8 kB / 0.9528 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.5803, allocations: 8.844 kB / 0.9528 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.993e-05/0.5804, allocations: 49.78 kB / 0.9529 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.5804, allocations: 1.594 kB / 0.9529 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.5804, allocations: 0 / 0.9529 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.5805, allocations: 0 / 0.9529 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.259e-05/0.5805, allocations: 153 kB / 0.953 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.5805, allocations: 4.906 kB / 0.953 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.716e-05/0.5806, allocations: 8.172 kB / 0.953 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.5806, allocations: 9.281 kB / 0.9531 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.5806, allocations: 0 / 0.9531 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5806, allocations: 5.281 kB / 0.9531 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.5806, allocations: 0 / 0.9531 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.5807, allocations: 75.03 kB / 0.9531 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.264e-05/0.5807, allocations: 81.05 kB / 0.9532 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.084e-05/0.5807, allocations: 5.469 kB / 0.9532 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.986e-05/0.5808, allocations: 4.953 kB / 0.9532 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.052e-05/0.5808, allocations: 1.188 kB / 0.9532 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.5808, allocations: 1.156 kB / 0.9532 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.586e-05/0.5808, allocations: 85.84 kB / 0.9533 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5808, allocations: 0 / 0.9533 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002192/0.5811, allocations: 22.38 kB / 0.9533 GB, free: 5.066 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.0002953/0.5814, allocations: 0.6499 MB / 0.954 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.656e-05/0.5814, allocations: 18.86 kB / 0.954 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.5814, allocations: 0 / 0.954 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.496e-05/0.5815, allocations: 17.45 kB / 0.954 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.5816, allocations: 2.156 kB / 0.954 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005808/0.5822, allocations: 1.133 MB / 0.9551 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.125e-05/0.5823, allocations: 0.6733 MB / 0.9558 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.9e-05/0.5823, allocations: 3.219 kB / 0.9558 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.133e-05/0.5823, allocations: 12.55 kB / 0.9558 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5823, allocations: 0.9375 kB / 0.9558 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.619/1.201, allocations: 1.6 MB / 0.9573 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/1.202, allocations: 232.4 kB / 0.9576 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.84, allocations: 6.688 kB / 0.9576 GB, free: 1.527 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