Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.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: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_9_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_9_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 196.5 kB / 16.79 MB, free: 6.809 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.352/1.352, allocations: 222.9 MB / 240.5 MB, free: 4.586 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.381/2.381, allocations: 390.2 MB / 0.6649 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 59.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7215/0.723, allocations: 140.4 MB / 0.9496 GB, free: 9.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.004314/0.7273, allocations: 1.862 MB / 0.9514 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001355/0.7287, allocations: 0.5314 MB / 0.9519 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.7289, allocations: 7 kB / 0.9519 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.7291, allocations: 17.48 kB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.7292, allocations: 18.48 kB / 0.952 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.7295, allocations: 60.91 kB / 0.952 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003332/0.7299, allocations: 169.5 kB / 0.9522 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.7301, allocations: 50.27 kB / 0.9522 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.7302, allocations: 50.97 kB / 0.9523 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.7304, allocations: 56.02 kB / 0.9523 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.7304, allocations: 6.875 kB / 0.9523 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.273e-05/0.7305, allocations: 10.88 kB / 0.9523 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.227e-05/0.7305, allocations: 24.03 kB / 0.9524 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.023e-05/0.7306, allocations: 60.11 kB / 0.9524 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.7308, allocations: 94.31 kB / 0.9525 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.7308, allocations: 1.375 kB / 0.9525 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.915e-06/0.7308, allocations: 0 / 0.9525 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.7309, allocations: 7.875 kB / 0.9525 GB, free: 6.73 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001044/0.7319, allocations: 473.5 kB / 0.953 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.612e-05/0.732, allocations: 8.688 kB / 0.953 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.143e-05/0.7321, allocations: 26.84 kB / 0.953 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.7325, allocations: 220.9 kB / 0.9532 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.7325, allocations: 9.125 kB / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.34e-05/0.7326, allocations: 12.16 kB / 0.9532 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004909/0.7331, allocations: 159.4 kB / 0.9534 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.7331, allocations: 0 / 0.9534 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/0.7332, allocations: 5.359 kB / 0.9534 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.7332, allocations: 2.25 kB / 0.9534 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004311/0.7336, allocations: 73.81 kB / 0.9535 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.7349, allocations: 0.7437 MB / 0.9542 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.7352, allocations: 52.95 kB / 0.9542 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.7354, allocations: 28.12 kB / 0.9543 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.7355, allocations: 2.188 kB / 0.9543 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004484/0.7359, allocations: 125.3 kB / 0.9544 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 4.388e-06/0.736, allocations: 4 kB / 0.9544 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0008803/0.7368, allocations: 164.2 kB / 0.9546 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.7369, allocations: 135 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002636/0.7372, allocations: 203.6 kB / 0.9549 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.7372, allocations: 31.05 kB / 0.9549 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.194e-05/0.7373, allocations: 136.2 kB / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.613e-05/0.7374, allocations: 28.7 kB / 0.9551 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.7375, allocations: 44.61 kB / 0.9551 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.822e-05/0.7376, allocations: 331.5 kB / 0.9554 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.7378, allocations: 37.59 kB / 0.9555 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/0.7381, allocations: 144.2 kB / 0.9556 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004949/0.7386, allocations: 206.2 kB / 0.9558 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.7386, allocations: 5.125 kB / 0.9558 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000664/0.7393, allocations: 206.3 kB / 0.956 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.7394, allocations: 6.5 kB / 0.956 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.7394, allocations: 8.312 kB / 0.956 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.61e-05/0.7394, allocations: 4.875 kB / 0.956 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.7397, allocations: 31.98 kB / 0.956 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.882e-05/0.7397, allocations: 8.922 kB / 0.9561 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.74, allocations: 33.23 kB / 0.9561 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.74, allocations: 7.281 kB / 0.9561 GB, free: 3.438 MB / 0.7169 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.0001267/0.7402, allocations: 141.5 kB / 0.9562 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.732e-05/0.7402, allocations: 20.69 kB / 0.9562 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.853e-05/0.7403, allocations: 22.55 kB / 0.9563 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.7403, allocations: 2.344 kB / 0.9563 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.7403, allocations: 5 kB / 0.9563 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.7404, allocations: 2.344 kB / 0.9563 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.7415, allocations: 0.5097 MB / 0.9568 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.7415, allocations: 4.938 kB / 0.9568 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.7417, allocations: 16.7 kB / 0.9568 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.7417, allocations: 1 kB / 0.9568 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.7418, allocations: 7.469 kB / 0.9568 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.7418, allocations: 1.5 kB / 0.9568 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.7418, allocations: 5.406 kB / 0.9568 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007474/0.7426, allocations: 368.3 kB / 0.9572 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.391e-05/0.7426, allocations: 98.45 kB / 0.9573 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.7427, allocations: 2.344 kB / 0.9573 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.743, allocations: 14.73 kB / 0.9573 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.341e-05/0.7431, allocations: 17.67 kB / 0.9573 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.7431, allocations: 7.953 kB / 0.9573 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001608/0.7433, allocations: 146.5 kB / 0.9574 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 4.3e-07/0.7433, allocations: 0 / 0.9574 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0006132/0.744, allocations: 27.41 kB / 0.9575 GB, free: 2.223 MB / 0.7169 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.0001278/0.7441, allocations: 102.2 kB / 0.9576 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005231/0.7446, allocations: 116.7 kB / 0.9577 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.7447, allocations: 0 / 0.9577 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002719/0.7449, allocations: 51 kB / 0.9577 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009732/0.7459, allocations: 69.48 kB / 0.9578 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007389/0.7467, allocations: 416.1 kB / 0.9582 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.7469, allocations: 0.7212 MB / 0.9589 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.283e-05/0.747, allocations: 22.56 kB / 0.9589 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of SimCode: time 6.21e-07/0.747, allocations: 0 / 0.9589 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of Templates: time 0.006364/0.7534, allocations: 2.123 MB / 0.961 GB, free: 15.85 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches