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.0009188/0.0009191, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005484/0.005484, allocations: 169 kB / 16.26 MB, free: 6.652 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.238/1.238, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.115/2.115, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003102/0.0003102, allocations: 12 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5642/0.5645, allocations: 142.4 MB / 0.9552 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.0005732/0.5651, allocations: 331 kB / 0.9555 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005538/0.5657, allocations: 365.2 kB / 0.9558 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.169e-05/0.5657, allocations: 0 / 0.9558 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.015e-05/0.5657, allocations: 0 / 0.9558 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.993e-05/0.5657, allocations: 0 / 0.9558 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003122/0.5661, allocations: 80.58 kB / 0.9559 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.195e-05/0.5661, allocations: 12.45 kB / 0.9559 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.511e-05/0.5662, allocations: 1.875 kB / 0.9559 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.714e-05/0.5662, allocations: 5.938 kB / 0.9559 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.011e-05/0.5662, allocations: 2.25 kB / 0.9559 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.5662, allocations: 0.8125 kB / 0.9559 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003264/0.5666, allocations: 274.2 kB / 0.9562 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.224e-05/0.5666, allocations: 13.17 kB / 0.9562 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.492e-05/0.5666, allocations: 30.92 kB / 0.9562 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.5668, allocations: 92.44 kB / 0.9563 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.5668, allocations: 1.188 kB / 0.9563 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.144e-06/0.5668, allocations: 0 / 0.9563 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.085e-06/0.5668, allocations: 3.938 kB / 0.9563 GB, free: 6.82 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.0002332/0.567, allocations: 336.4 kB / 0.9567 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.5671, allocations: 9.156 kB / 0.9567 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.374e-05/0.5671, allocations: 32.28 kB / 0.9567 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/0.5672, allocations: 2.281 kB / 0.9567 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.489e-05/0.5672, allocations: 161.8 kB / 0.9569 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.158e-06/0.5672, allocations: 4.375 kB / 0.9569 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.5673, allocations: 1.781 kB / 0.9569 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.253e-05/0.5673, allocations: 34.19 kB / 0.9569 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.47e-06/0.5674, allocations: 3.938 kB / 0.9569 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.204e-06/0.5674, allocations: 5.406 kB / 0.9569 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.5674, allocations: 0 / 0.9569 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.785e-05/0.5674, allocations: 6.594 kB / 0.9569 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.381e-05/0.5675, allocations: 155 kB / 0.9571 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.54e-05/0.5675, allocations: 23.05 kB / 0.9571 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.321e-05/0.5676, allocations: 6.953 kB / 0.9571 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005384/0.5681, allocations: 464.8 kB / 0.9575 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.5681, allocations: 30.56 kB / 0.9576 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.5681, allocations: 1.062 kB / 0.9576 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003708/0.5685, allocations: 263 kB / 0.9578 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.7e-05/0.5685, allocations: 52.5 kB / 0.9579 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.308e-05/0.5686, allocations: 104.3 kB / 0.958 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.843e-06/0.5686, allocations: 25.7 kB / 0.958 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.216e-05/0.5686, allocations: 84.92 kB / 0.9581 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.5686, allocations: 6.688 kB / 0.9581 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/0.5686, allocations: 13.72 kB / 0.9581 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.173e-05/0.5687, allocations: 319.9 kB / 0.9584 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.462e-05/0.5687, allocations: 3.438 kB / 0.9584 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.856e-05/0.5687, allocations: 15.38 kB / 0.9584 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.642e-05/0.5688, allocations: 27.12 kB / 0.9584 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.5688, allocations: 0 / 0.9584 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.016e-05/0.5689, allocations: 61.84 kB / 0.9585 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.5689, allocations: 9.781 kB / 0.9585 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.5689, allocations: 0 / 0.9585 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.418e-06/0.5689, allocations: 1.156 kB / 0.9585 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.791e-05/0.5689, allocations: 5.719 kB / 0.9585 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.569, allocations: 5.078 kB / 0.9585 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.747e-05/0.569, allocations: 1.438 kB / 0.9585 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.569, allocations: 1.281 kB / 0.9585 GB, free: 4.387 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.958e-05/0.569, allocations: 123.3 kB / 0.9586 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.5691, allocations: 9.281 kB / 0.9586 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.536e-05/0.5692, allocations: 49.47 kB / 0.9587 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.5692, allocations: 1.031 kB / 0.9587 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.5692, allocations: 0 / 0.9587 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.5692, allocations: 0 / 0.9587 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.3e-05/0.5692, allocations: 154.3 kB / 0.9588 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.5692, allocations: 4 kB / 0.9588 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.523e-05/0.5693, allocations: 8.422 kB / 0.9588 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.5693, allocations: 9.031 kB / 0.9589 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-06/0.5693, allocations: 1.062 kB / 0.9589 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5693, allocations: 0 / 0.9589 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5693, allocations: 0.9688 kB / 0.9589 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.5694, allocations: 85.8 kB / 0.9589 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.319e-05/0.5695, allocations: 82.2 kB / 0.959 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.5695, allocations: 5.359 kB / 0.959 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.528e-05/0.5695, allocations: 4.062 kB / 0.959 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.044e-05/0.5695, allocations: 2.156 kB / 0.959 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-06/0.5695, allocations: 1.062 kB / 0.959 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.604e-05/0.5696, allocations: 81.59 kB / 0.9591 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5696, allocations: 0 / 0.9591 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002053/0.5698, allocations: 26.25 kB / 0.9591 GB, free: 3.715 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.0002999/0.5701, allocations: 0.6455 MB / 0.9598 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.397e-05/0.5702, allocations: 14.88 kB / 0.9598 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.5702, allocations: 0 / 0.9598 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.524e-05/0.5702, allocations: 13.64 kB / 0.9598 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.5703, allocations: 6.312 kB / 0.9598 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005592/0.5709, allocations: 1.128 MB / 0.9609 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.081e-05/0.571, allocations: 0.6809 MB / 0.9616 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.516e-05/0.571, allocations: 2.031 kB / 0.9616 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.038e-05/0.571, allocations: 9.469 kB / 0.9616 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of SimCode: time 2.81e-07/0.571, allocations: 0 / 0.9616 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009567/0.5806, allocations: 1.549 MB / 0.9631 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/0.5808, allocations: 226 kB / 0.9633 GB, free: 276 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.236, allocations: 0 / 0.9633 GB, free: 276 kB / 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