Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 102.5 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 212.9 kB / 19.43 MB, free: 3.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.452/1.452, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.268/3.268, allocations: 0.49 GB / 0.7916 GB, free: 33.54 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002146/0.002146, allocations: 67.44 kB / 1.149 GB, free: 26.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3641, allocations: 176.1 MB / 1.321 GB, free: 3.297 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002185/0.3663, allocations: 0.8845 MB / 1.322 GB, free: 2.41 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001577/0.3679, allocations: 1.213 MB / 1.323 GB, free: 1.184 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.179e-05/0.3679, allocations: 0 / 1.323 GB, free: 1.184 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.669e-05/0.368, allocations: 7.875 kB / 1.323 GB, free: 1.176 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.608e-05/0.3681, allocations: 15.81 kB / 1.323 GB, free: 1.16 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.3686, allocations: 155.7 kB / 1.323 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002379/0.3689, allocations: 163.7 kB / 1.323 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.369, allocations: 41.02 kB / 1.323 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.3691, allocations: 63.84 kB / 1.323 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.3693, allocations: 71.72 kB / 1.323 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.3693, allocations: 16 kB / 1.323 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.339e-05/0.3694, allocations: 27.98 kB / 1.323 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.307e-05/0.3694, allocations: 19.92 kB / 1.323 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.644e-05/0.3695, allocations: 75.69 kB / 1.324 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.3697, allocations: 167.6 kB / 1.324 GB, free: 384 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3697, allocations: 0 / 1.324 GB, free: 384 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3697, allocations: 0 / 1.324 GB, free: 384 kB / 1.014 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.3697, allocations: 4 kB / 1.324 GB, free: 380 kB / 1.014 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.0007084/0.3704, allocations: 464.6 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.3705, allocations: 11.98 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.062e-05/0.3705, allocations: 42.73 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.058e-05/0.3706, allocations: 12.89 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005652/0.3711, allocations: 254 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.3711, allocations: 12.31 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.3712, allocations: 12.38 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.3714, allocations: 93.95 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3714, allocations: 3.984 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.3714, allocations: 0 / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.3714, allocations: 7.984 kB / 1.325 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.3716, allocations: 46.78 kB / 1.325 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007157/0.3724, allocations: 392.5 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.3725, allocations: 30.55 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.3726, allocations: 24.97 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.3726, allocations: 8 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.3728, allocations: 103.3 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.3728, allocations: 3.938 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0004567/0.3733, allocations: 137.5 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.3733, allocations: 59.34 kB / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.3735, allocations: 135.5 kB / 1.325 GB, free: 14.35 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.3735, allocations: 41.62 kB / 1.326 GB, free: 14.3 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.3736, allocations: 100 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.3736, allocations: 31.88 kB / 1.326 GB, free: 14.17 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.286e-05/0.3737, allocations: 49.69 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3739, allocations: 322.8 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.374, allocations: 51.97 kB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.3743, allocations: 133.4 kB / 1.326 GB, free: 13.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.3746, allocations: 208.6 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3746, allocations: 0 / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000538/0.3752, allocations: 243 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.156e-05/0.3752, allocations: 33.7 kB / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.3752, allocations: 4 kB / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.3753, allocations: 4 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.3754, allocations: 35.84 kB / 1.327 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.3754, allocations: 4.375 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.3756, allocations: 43.86 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.3757, allocations: 15.98 kB / 1.327 GB, free: 12.93 MB / 1.029 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.0001275/0.3758, allocations: 125.8 kB / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.937e-05/0.3758, allocations: 7.953 kB / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.337e-05/0.3759, allocations: 16.7 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.3759, allocations: 3.938 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3759, allocations: 4 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3759, allocations: 0 / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006295/0.3765, allocations: 394.8 kB / 1.327 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3765, allocations: 4 kB / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.3766, allocations: 19.92 kB / 1.327 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3766, allocations: 0 / 1.327 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.3766, allocations: 4.078 kB / 1.327 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3766, allocations: 11.88 kB / 1.327 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3766, allocations: 7.984 kB / 1.327 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004602/0.3771, allocations: 235.3 kB / 1.328 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.986e-05/0.3772, allocations: 96.97 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.298e-05/0.3772, allocations: 4 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.437e-05/0.3773, allocations: 4 kB / 1.328 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.3773, allocations: 15.98 kB / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.3773, allocations: 4 kB / 1.328 GB, free: 11.88 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.992e-05/0.3774, allocations: 109.1 kB / 1.328 GB, free: 11.78 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3774, allocations: 0 / 1.328 GB, free: 11.78 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002975/0.3777, allocations: 28 kB / 1.328 GB, free: 11.75 MB / 1.029 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.0008093/0.3785, allocations: 0.7865 MB / 1.329 GB, free: 10.94 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000406/0.3789, allocations: 167.9 kB / 1.329 GB, free: 10.76 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3789, allocations: 3.938 kB / 1.329 GB, free: 10.76 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.3791, allocations: 32.05 kB / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.3794, allocations: 24.56 kB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.382, allocations: 1.975 MB / 1.331 GB, free: 8.57 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.3823, allocations: 0.7045 MB / 1.331 GB, free: 7.836 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.502e-05/0.3824, allocations: 20.64 kB / 1.331 GB, free: 7.816 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.731e-05/0.3824, allocations: 39.42 kB / 1.331 GB, free: 7.777 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3824, allocations: 4 kB / 1.331 GB, free: 7.773 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.4099, allocations: 3.174 MB / 1.335 GB, free: 4.73 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.154/8.564, allocations: 3.984 kB / 1.335 GB, free: 4.73 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.344772796146572]