Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",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.00124/0.00124, 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.001339/0.001339, allocations: 191.5 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.255/1.255, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.36/2.36, allocations: 437 MB / 0.7099 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 71.89 kB / 0.8687 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5663/0.5677, allocations: 151.6 MB / 1.017 GB, free: 2.742 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001967/0.5697, allocations: 0.9427 MB / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001268/0.571, allocations: 1.198 MB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.977e-05/0.571, allocations: 0 / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.55e-05/0.5711, allocations: 3.938 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.838e-05/0.5712, allocations: 11.86 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.5716, allocations: 139.6 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.5717, allocations: 151.6 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.5718, allocations: 41.02 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.926e-05/0.5719, allocations: 63.81 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.484e-05/0.572, allocations: 55.75 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/0.5721, allocations: 16 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.736e-05/0.5721, allocations: 23.98 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.281e-05/0.5722, allocations: 23.84 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.805e-05/0.5722, allocations: 59.7 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.5724, allocations: 161.8 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.5725, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.71e-07/0.5725, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.156e-06/0.5725, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005987/0.5731, allocations: 460.7 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.5731, allocations: 16.03 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.425e-05/0.5732, allocations: 42.67 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.561e-05/0.5732, allocations: 12.84 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004848/0.5737, allocations: 245.8 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.5737, allocations: 12.36 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.218e-05/0.5738, allocations: 16.38 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.574, allocations: 93.89 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.574, allocations: 0 / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.574, allocations: 4 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.574, allocations: 4 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001634/0.5742, allocations: 51.89 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006137/0.5748, allocations: 388.5 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.5749, allocations: 34.5 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.045e-05/0.575, allocations: 24.97 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.575, allocations: 3.984 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002092/0.5752, allocations: 99.27 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 2.554e-06/0.5753, allocations: 0 / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003676/0.5756, allocations: 129.5 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.663e-05/0.5757, allocations: 63.28 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.5758, allocations: 143.9 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.5759, allocations: 37.7 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.281e-05/0.5759, allocations: 104.3 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.576, allocations: 31.69 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.576, allocations: 49.69 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.5761, allocations: 322.8 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.5763, allocations: 55.89 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.5765, allocations: 130.5 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.5768, allocations: 204.6 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.5768, allocations: 4 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004376/0.5772, allocations: 239.2 kB / 1.022 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/0.5773, allocations: 41.62 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5773, allocations: 4 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.5773, allocations: 4 kB / 1.022 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.96e-05/0.5774, allocations: 31.86 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.5774, allocations: 7.938 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.5776, allocations: 51.95 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.5777, allocations: 8 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001033/0.5778, allocations: 126.4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.5778, allocations: 11.89 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.081e-05/0.5778, allocations: 8.719 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.5778, allocations: 7.938 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5779, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.5779, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004925/0.5784, allocations: 402.3 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.5784, allocations: 0 / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.449e-05/0.5785, allocations: 19.92 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.5785, allocations: 0 / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.5785, allocations: 4.047 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.5785, allocations: 0 / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.5785, allocations: 3.984 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.5789, allocations: 239.3 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.71e-05/0.5789, allocations: 88.95 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.579, allocations: 4 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-05/0.579, allocations: 8.219 kB / 1.023 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.5791, allocations: 7.984 kB / 1.023 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.5791, allocations: 11.94 kB / 1.023 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.941e-05/0.5792, allocations: 104.8 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5792, allocations: 0 / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002784/0.5795, allocations: 39.84 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007106/0.5802, allocations: 0.7937 MB / 1.024 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003505/0.5805, allocations: 179.2 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5805, allocations: 0 / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.5807, allocations: 40.66 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.581, allocations: 31.84 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.5831, allocations: 1.978 MB / 1.027 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.5834, allocations: 0.7084 MB / 1.027 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.502e-05/0.5835, allocations: 12.64 kB / 1.027 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.394e-05/0.5835, allocations: 39.42 kB / 1.027 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5835, allocations: 480 / 1.027 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.5953, allocations: 2.899 MB / 1.03 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.5956, allocations: 217.9 kB / 1.03 GB, free: 4.227 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/2.183, allocations: 4 kB / 1.03 GB, free: 4.223 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches