Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.001212/0.001212, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001908/0.001908, allocations: 194.5 kB / 16.14 MB, free: 6.648 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.293/1.293, allocations: 222.9 MB / 239.8 MB, free: 4.543 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.143/2.143, allocations: 390.2 MB / 0.6643 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 67.89 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.526/0.5272, allocations: 140.4 MB / 0.9491 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001725/0.5289, allocations: 0.9381 MB / 0.95 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.53, allocations: 1.186 MB / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.663e-05/0.53, allocations: 1.219 kB / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.575e-05/0.5301, allocations: 3.938 kB / 0.9511 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.13e-05/0.5302, allocations: 18.5 kB / 0.9512 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.5305, allocations: 132.2 kB / 0.9513 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.5307, allocations: 153.4 kB / 0.9514 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.5308, allocations: 29.86 kB / 0.9515 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.797e-05/0.5309, allocations: 63.08 kB / 0.9515 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.599e-05/0.5309, allocations: 62.69 kB / 0.9516 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.906e-05/0.531, allocations: 9.562 kB / 0.9516 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.459e-05/0.531, allocations: 23.48 kB / 0.9516 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.363e-05/0.5311, allocations: 24.03 kB / 0.9516 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.459e-05/0.5311, allocations: 62.2 kB / 0.9517 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.5313, allocations: 156.5 kB / 0.9518 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5313, allocations: 0 / 0.9518 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.91e-07/0.5313, allocations: 0 / 0.9518 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.5313, allocations: 0 / 0.9518 GB, free: 7.016 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005099/0.5318, allocations: 465.6 kB / 0.9523 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.5319, allocations: 9.469 kB / 0.9523 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.82e-05/0.5319, allocations: 41.14 kB / 0.9523 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.68e-05/0.532, allocations: 13.75 kB / 0.9524 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000441/0.5324, allocations: 246.1 kB / 0.9526 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.5324, allocations: 9.938 kB / 0.9526 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.283e-05/0.5325, allocations: 21.12 kB / 0.9526 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.5327, allocations: 97.2 kB / 0.9527 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.5327, allocations: 3.984 kB / 0.9527 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.5327, allocations: 1.062 kB / 0.9527 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.5327, allocations: 2.562 kB / 0.9527 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.5329, allocations: 50.58 kB / 0.9528 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005387/0.5334, allocations: 385.6 kB / 0.9531 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.912e-05/0.5335, allocations: 31.06 kB / 0.9532 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.681e-05/0.5336, allocations: 33.58 kB / 0.9532 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.5336, allocations: 5.734 kB / 0.9532 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001827/0.5338, allocations: 102.7 kB / 0.9533 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.5338, allocations: 0 / 0.9533 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003572/0.5342, allocations: 132.9 kB / 0.9534 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/0.5342, allocations: 61.44 kB / 0.9535 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.102e-05/0.5343, allocations: 156.8 kB / 0.9536 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.5343, allocations: 31.02 kB / 0.9537 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.294e-05/0.5344, allocations: 106.9 kB / 0.9538 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.5344, allocations: 27.48 kB / 0.9538 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.615e-05/0.5345, allocations: 45.48 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.791e-05/0.5345, allocations: 321.5 kB / 0.9541 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.5347, allocations: 54.92 kB / 0.9542 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.5348, allocations: 134.3 kB / 0.9543 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.5351, allocations: 207.4 kB / 0.9545 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5351, allocations: 1.25 kB / 0.9545 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004226/0.5355, allocations: 240.3 kB / 0.9548 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.5355, allocations: 38.19 kB / 0.9548 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.5355, allocations: 2.281 kB / 0.9548 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.5356, allocations: 4.094 kB / 0.9548 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.882e-05/0.5357, allocations: 29.98 kB / 0.9548 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.5357, allocations: 4.312 kB / 0.9548 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.5359, allocations: 46.48 kB / 0.9549 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.5359, allocations: 9.625 kB / 0.9549 GB, free: 4.258 MB / 0.7169 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 6.771e-05/0.536, allocations: 136.7 kB / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.622e-05/0.536, allocations: 12.97 kB / 0.955 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.536, allocations: 14.16 kB / 0.955 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.536, allocations: 5.344 kB / 0.955 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.536, allocations: 0 / 0.955 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.536, allocations: 5.375 kB / 0.955 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004042/0.5365, allocations: 394.2 kB / 0.9554 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.5365, allocations: 1.219 kB / 0.9554 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.34e-05/0.5366, allocations: 20.64 kB / 0.9554 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.5366, allocations: 1.188 kB / 0.9554 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.5366, allocations: 1.156 kB / 0.9554 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5366, allocations: 1.469 kB / 0.9554 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5366, allocations: 7.984 kB / 0.9555 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.5369, allocations: 246.3 kB / 0.9557 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.99e-05/0.5369, allocations: 88.08 kB / 0.9558 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/0.537, allocations: 1.094 kB / 0.9558 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.675e-05/0.5371, allocations: 8.75 kB / 0.9558 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.4e-05/0.5371, allocations: 19.23 kB / 0.9558 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.5371, allocations: 3.812 kB / 0.9558 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.786e-05/0.5371, allocations: 104.9 kB / 0.9559 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5372, allocations: 0 / 0.9559 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002644/0.5374, allocations: 36.83 kB / 0.9559 GB, free: 3.297 MB / 0.7169 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.0004937/0.5379, allocations: 0.7861 MB / 0.9567 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003177/0.5382, allocations: 180.7 kB / 0.9569 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5383, allocations: 0 / 0.9569 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.5384, allocations: 43.44 kB / 0.9569 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.5386, allocations: 31.17 kB / 0.957 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/0.5403, allocations: 1.981 MB / 0.9589 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.5405, allocations: 0.7064 MB / 0.9596 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.146e-05/0.5406, allocations: 20.83 kB / 0.9596 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.5406, allocations: 34.3 kB / 0.9596 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of SimCode: time 8.41e-07/0.5406, allocations: 0 / 0.9596 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2653/0.8059, allocations: 2.908 MB / 0.9625 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/0.8062, allocations: 221.2 kB / 0.9627 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.684, allocations: 0 / 0.9627 GB, free: 14.25 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches