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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001372/0.001377, allocations: 108 kB / 15.61 MB, free: 152 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.001344/0.001344, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.421/2.421, allocations: 390.2 MB / 0.6646 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 63.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7862/0.7883, allocations: 140.4 MB / 0.9496 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002592/0.7909, allocations: 1.81 MB / 0.9513 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007887/0.7917, allocations: 0.537 MB / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/0.7918, allocations: 6.688 kB / 0.9519 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.792, allocations: 22.61 kB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.338e-05/0.792, allocations: 29.19 kB / 0.9519 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.7922, allocations: 66.42 kB / 0.952 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.7924, allocations: 166.9 kB / 0.9522 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.7926, allocations: 55.14 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.032e-05/0.7926, allocations: 55.81 kB / 0.9523 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.56e-05/0.7927, allocations: 60.3 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.7927, allocations: 10.97 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.26e-05/0.7928, allocations: 9.375 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.166e-05/0.7928, allocations: 28.97 kB / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.482e-05/0.7929, allocations: 71.03 kB / 0.9524 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.793, allocations: 130.9 kB / 0.9526 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.793, allocations: 0 / 0.9526 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.793, allocations: 0 / 0.9526 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.793, allocations: 1.281 kB / 0.9526 GB, free: 6.879 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.000598/0.7937, allocations: 468.1 kB / 0.953 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.7937, allocations: 9.812 kB / 0.953 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.065e-05/0.7938, allocations: 25.72 kB / 0.953 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/0.7939, allocations: 229.8 kB / 0.9533 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.794, allocations: 9 kB / 0.9533 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.794, allocations: 12.59 kB / 0.9533 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.7943, allocations: 146.5 kB / 0.9534 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.7943, allocations: 0 / 0.9534 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.7943, allocations: 9.312 kB / 0.9534 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.7943, allocations: 2.812 kB / 0.9534 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000236/0.7946, allocations: 74.45 kB / 0.9535 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007407/0.7953, allocations: 0.7471 MB / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.7955, allocations: 49.39 kB / 0.9543 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.7956, allocations: 35.98 kB / 0.9543 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.7956, allocations: 0.9688 kB / 0.9543 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002339/0.7958, allocations: 121.1 kB / 0.9544 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.924e-06/0.7958, allocations: 0 / 0.9544 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004569/0.7963, allocations: 177 kB / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.7964, allocations: 138.6 kB / 0.9547 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.7965, allocations: 203.8 kB / 0.9549 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.7965, allocations: 31.95 kB / 0.955 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.467e-05/0.7966, allocations: 127.4 kB / 0.9551 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.7966, allocations: 32.47 kB / 0.9551 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.7967, allocations: 48.73 kB / 0.9551 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.131e-05/0.7967, allocations: 323 kB / 0.9555 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.7969, allocations: 42.06 kB / 0.9555 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.797, allocations: 145.2 kB / 0.9556 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.7973, allocations: 204.9 kB / 0.9558 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.7973, allocations: 1.031 kB / 0.9558 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003583/0.7976, allocations: 206.4 kB / 0.956 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.7977, allocations: 10.42 kB / 0.956 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.7977, allocations: 3.688 kB / 0.956 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.7977, allocations: 5.625 kB / 0.956 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.7978, allocations: 35.83 kB / 0.9561 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.669e-06/0.7979, allocations: 5.125 kB / 0.9561 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.798, allocations: 32.02 kB / 0.9561 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.798, allocations: 9.5 kB / 0.9561 GB, free: 3.582 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 8.412e-05/0.7981, allocations: 144.7 kB / 0.9563 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.7981, allocations: 16.12 kB / 0.9563 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.7982, allocations: 22.47 kB / 0.9563 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.7982, allocations: 6.734 kB / 0.9563 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.7982, allocations: 5.156 kB / 0.9563 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.7982, allocations: 1.25 kB / 0.9563 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006144/0.7988, allocations: 0.5041 MB / 0.9568 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.7988, allocations: 3.938 kB / 0.9568 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.799, allocations: 19.14 kB / 0.9568 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.799, allocations: 3.062 kB / 0.9568 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.799, allocations: 3.625 kB / 0.9568 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.799, allocations: 0 / 0.9568 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.799, allocations: 3.938 kB / 0.9568 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004112/0.7994, allocations: 361.6 kB / 0.9572 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.7995, allocations: 94.42 kB / 0.9573 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.7995, allocations: 6.75 kB / 0.9573 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.7997, allocations: 18.92 kB / 0.9573 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.7997, allocations: 17.36 kB / 0.9573 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.7997, allocations: 8.516 kB / 0.9573 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.088e-05/0.7998, allocations: 145.7 kB / 0.9575 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7998, allocations: 0 / 0.9575 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003246/0.8001, allocations: 27.44 kB / 0.9575 GB, free: 2.375 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.0001087/0.8003, allocations: 118 kB / 0.9576 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003058/0.8006, allocations: 118 kB / 0.9577 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.8006, allocations: 0 / 0.9577 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.8007, allocations: 52.78 kB / 0.9578 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005348/0.8013, allocations: 61.52 kB / 0.9578 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004866/0.8018, allocations: 356 kB / 0.9582 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.8019, allocations: 0.7279 MB / 0.9589 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.302e-05/0.802, allocations: 20.14 kB / 0.9589 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.867e-05/0.802, allocations: 21.28 kB / 0.9589 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.802, allocations: 0 / 0.9589 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of Templates: time 0.004578/0.8066, allocations: 2 MB / 0.9609 GB, free: 168 kB / 0.7169 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches