Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer",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.009061/0.009061, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001833/0.001833, allocations: 195.9 kB / 16.67 MB, free: 5.977 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.65/2.65, allocations: 461.9 MB / 0.7348 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001294, allocations: 63.91 kB / 1.054 GB, free: 7.625 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2716, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.002657/0.2743, allocations: 1.48 MB / 1.209 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006996/0.275, allocations: 438.7 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.237e-05/0.275, allocations: 0 / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.683e-05/0.2751, allocations: 3.938 kB / 1.209 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.021e-05/0.2752, allocations: 11.92 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001512/0.2753, allocations: 23.91 kB / 1.209 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.146e-05/0.2754, allocations: 55.84 kB / 1.209 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.546e-05/0.2755, allocations: 8 kB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.279e-05/0.2756, allocations: 23.92 kB / 1.209 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.754e-05/0.2756, allocations: 19.91 kB / 1.209 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.2757, allocations: 4 kB / 1.209 GB, free: 8.051 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.163e-05/0.2757, allocations: 8 kB / 1.209 GB, free: 8.043 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.269e-05/0.2757, allocations: 11.92 kB / 1.209 GB, free: 8.031 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.388e-05/0.2758, allocations: 23.92 kB / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 9.315e-05/0.2759, allocations: 44.11 kB / 1.209 GB, free: 7.965 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2759, allocations: 4 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2759, allocations: 0 / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2759, allocations: 0 / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004659/0.2764, allocations: 359.4 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.2764, allocations: 12.62 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.684e-05/0.2765, allocations: 38.67 kB / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.2765, allocations: 8.844 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.2766, allocations: 168.3 kB / 1.21 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.2766, allocations: 8.375 kB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.2767, allocations: 8.375 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.2768, allocations: 58.3 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.2768, allocations: 7.938 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.2768, allocations: 0 / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.2768, allocations: 0 / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.476e-05/0.2769, allocations: 27.98 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004843/0.2774, allocations: 304.7 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.2775, allocations: 54.59 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.302e-05/0.2776, allocations: 24.95 kB / 1.21 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.2776, allocations: 4 kB / 1.21 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/0.2778, allocations: 75.31 kB / 1.21 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 2.886e-06/0.2778, allocations: 0 / 1.21 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0002167/0.278, allocations: 109.5 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.278, allocations: 55.34 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.16e-05/0.2781, allocations: 109.8 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.2781, allocations: 25.7 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.941e-05/0.2782, allocations: 92.05 kB / 1.211 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.2782, allocations: 19.75 kB / 1.211 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.2783, allocations: 25.7 kB / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.061e-05/0.2784, allocations: 322.8 kB / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.458e-05/0.2784, allocations: 24 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.743e-05/0.2784, allocations: 43.42 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.031e-05/0.2785, allocations: 67.36 kB / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2785, allocations: 0 / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001308/0.2787, allocations: 89.81 kB / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.2787, allocations: 8.031 kB / 1.211 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.2787, allocations: 4 kB / 1.211 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.2787, allocations: 3.984 kB / 1.211 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.86e-05/0.2788, allocations: 15.94 kB / 1.211 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.2788, allocations: 4 kB / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.346e-05/0.2789, allocations: 7.984 kB / 1.211 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.2789, allocations: 11.92 kB / 1.211 GB, free: 5.551 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,not1.y,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition2,$whenCondition3,offTim1.entryTime,$PRE.offTim1.entryTime,offTim2.entryTime,$PRE.offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 8.304e-05/0.279, allocations: 113.8 kB / 1.212 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.279, allocations: 3.906 kB / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.279, allocations: 15.97 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.279, allocations: 0 / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.279, allocations: 0 / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2791, allocations: 0 / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003652/0.2794, allocations: 362.8 kB / 1.212 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.2794, allocations: 4.078 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-05/0.2795, allocations: 7.938 kB / 1.212 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2795, allocations: 7.938 kB / 1.212 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.2795, allocations: 4 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2795, allocations: 3.938 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2795, allocations: 0 / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001441/0.2797, allocations: 187.3 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.473e-05/0.2797, allocations: 81.11 kB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.2797, allocations: 4.062 kB / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.461e-05/0.2798, allocations: 11.92 kB / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/0.2799, allocations: 8 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.2799, allocations: 7.984 kB / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.44e-05/0.2799, allocations: 79.28 kB / 1.212 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2799, allocations: 0 / 1.212 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002285/0.2801, allocations: 16 kB / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003805/0.2805, allocations: 0.7085 MB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.2807, allocations: 63.84 kB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2807, allocations: 4 kB / 1.213 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.12e-05/0.2807, allocations: 24 kB / 1.213 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.281, allocations: 17.64 kB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.2822, allocations: 1.384 MB / 1.214 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.2824, allocations: 0.6854 MB / 1.215 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.964e-05/0.2824, allocations: 7.984 kB / 1.215 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.2825, allocations: 19.44 kB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.2825, allocations: 0 / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01628/0.2988, allocations: 1.785 MB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.195/7.494, allocations: 12.52 kB / 1.217 GB, free: 15.78 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,offTim1.u,offTim1.y,offTim2.u,offTim2.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,not1.u,not1.y,offTim1.u,offTim1.y,offTim2.u,offTim2.y,time