Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.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.001867/0.001867, allocations: 80.28 kB / 19.18 MB, free: 2.527 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.002337/0.002337, allocations: 166.6 kB / 22.46 MB, free: 5.355 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.5/1.5, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.819/2.819, allocations: 359 MB / 0.6037 GB, free: 15.01 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 0.951 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.584e-05/2.772e-05, allocations: 5.375 kB / 0.951 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003489/0.003517, allocations: 1.791 MB / 0.9527 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.004859, allocations: 0.5532 MB / 0.9533 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.005043, allocations: 3.938 kB / 0.9533 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001972/0.00524, allocations: 27.73 kB / 0.9533 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.00537, allocations: 31.66 kB / 0.9533 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.00565, allocations: 63.86 kB / 0.9534 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002917/0.005942, allocations: 167.5 kB / 0.9536 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.00609, allocations: 41.78 kB / 0.9536 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.006247, allocations: 75.8 kB / 0.9537 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.586e-05/0.006333, allocations: 43.83 kB / 0.9537 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.234e-05/0.006365, allocations: 8 kB / 0.9537 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.246e-05/0.006388, allocations: 12 kB / 0.9537 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.177e-05/0.006429, allocations: 31.83 kB / 0.9538 GB, free: 8.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.149e-05/0.006501, allocations: 47.84 kB / 0.9538 GB, free: 8.684 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.00671, allocations: 135.4 kB / 0.9539 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.006713, allocations: 0 / 0.9539 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.232e-06/0.006714, allocations: 0 / 0.9539 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.006719, allocations: 8 kB / 0.9539 GB, free: 8.543 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008009/0.00752, allocations: 427.1 kB / 0.9543 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.007558, allocations: 8.031 kB / 0.9544 GB, free: 8.082 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.853e-05/0.007616, allocations: 20.84 kB / 0.9544 GB, free: 8.062 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.007931, allocations: 173.4 kB / 0.9545 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.007951, allocations: 8.375 kB / 0.9545 GB, free: 7.859 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.00798, allocations: 16.38 kB / 0.9546 GB, free: 7.844 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.008315, allocations: 150.4 kB / 0.9547 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.008326, allocations: 192 / 0.9547 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.008344, allocations: 4.375 kB / 0.9547 GB, free: 7.672 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.008353, allocations: 7.938 kB / 0.9547 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/0.008618, allocations: 71.83 kB / 0.9548 GB, free: 7.594 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000959/0.009577, allocations: 0.6531 MB / 0.9554 GB, free: 6.895 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.009751, allocations: 46.55 kB / 0.9555 GB, free: 6.84 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.009865, allocations: 32.78 kB / 0.9555 GB, free: 6.805 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.009892, allocations: 3.984 kB / 0.9555 GB, free: 6.801 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.01015, allocations: 123.1 kB / 0.9556 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.01015, allocations: 0 / 0.9556 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005363/0.01069, allocations: 169.3 kB / 0.9558 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.0108, allocations: 140.5 kB / 0.9559 GB, free: 6.316 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.011, allocations: 179 kB / 0.9561 GB, free: 6.133 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.01103, allocations: 29.7 kB / 0.9561 GB, free: 6.098 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.01115, allocations: 135.9 kB / 0.9562 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.01119, allocations: 35.73 kB / 0.9563 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.806e-05/0.01127, allocations: 45.66 kB / 0.9563 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.01141, allocations: 327.1 kB / 0.9566 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.01155, allocations: 39.97 kB / 0.9567 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.01177, allocations: 146.5 kB / 0.9568 GB, free: 5.312 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.01213, allocations: 206.5 kB / 0.957 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.01213, allocations: 0 / 0.957 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004541/0.01258, allocations: 209.1 kB / 0.9572 GB, free: 4.848 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.0126, allocations: 8.5 kB / 0.9572 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.01261, allocations: 4 kB / 0.9572 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.01262, allocations: 8 kB / 0.9572 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.01277, allocations: 31.92 kB / 0.9573 GB, free: 4.797 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.01278, allocations: 11.94 kB / 0.9573 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.01294, allocations: 23.88 kB / 0.9573 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.01296, allocations: 12 kB / 0.9573 GB, free: 4.75 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001275/0.01308, allocations: 137.7 kB / 0.9574 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.01312, allocations: 19.84 kB / 0.9575 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.367e-05/0.01316, allocations: 17.47 kB / 0.9575 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.01317, allocations: 11.98 kB / 0.9575 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.01317, allocations: 0 / 0.9575 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.01318, allocations: 4 kB / 0.9575 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007783/0.01395, allocations: 445.6 kB / 0.9579 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.01396, allocations: 4 kB / 0.9579 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.01409, allocations: 23.98 kB / 0.9579 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-06/0.0141, allocations: 7.922 kB / 0.9579 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.01411, allocations: 4 kB / 0.9579 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.01411, allocations: 4 kB / 0.958 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01411, allocations: 0 / 0.958 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/0.0147, allocations: 360.2 kB / 0.9583 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.818e-05/0.01473, allocations: 11.91 kB / 0.9583 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.826e-05/0.01475, allocations: 4 kB / 0.9583 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.01494, allocations: 19.97 kB / 0.9583 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.128e-05/0.015, allocations: 11.97 kB / 0.9583 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.01501, allocations: 12 kB / 0.9584 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001239/0.01513, allocations: 129.6 kB / 0.9585 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.01513, allocations: 0 / 0.9585 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003612/0.0155, allocations: 35.89 kB / 0.9585 GB, free: 3.449 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0001364/0.01563, allocations: 103.2 kB / 0.9586 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003665/0.016, allocations: 116.2 kB / 0.9587 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.016, allocations: 0 / 0.9587 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.01616, allocations: 47.91 kB / 0.9588 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006178/0.01678, allocations: 80.27 kB / 0.9588 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006377/0.01742, allocations: 316.6 kB / 0.9591 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.01754, allocations: 112.8 kB / 0.9593 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.344e-05/0.01761, allocations: 13.61 kB / 0.9593 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.802e-05/0.01766, allocations: 20.48 kB / 0.9593 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of SimCode: time 4.41e-07/0.01766, allocations: 4 kB / 0.9593 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of Templates: time 0.006283/0.02394, allocations: 2.131 MB / 0.9614 GB, free: 0.5273 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.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: 8.020814828574657]