Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001803/0.001803, allocations: 79.11 kB / 19.76 MB, free: 2.035 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.001431/0.001431, allocations: 157.1 kB / 23.01 MB, free: 4.941 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.412/1.412, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.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 2.75/2.75, allocations: 377.9 MB / 0.6228 GB, free: 12.59 MB / 0.5919 GB " [Timeout remaining time 177] 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: 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_12_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_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [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.002127/0.002127, allocations: 63.91 kB / 0.982 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.824/0.8261, allocations: 176.1 MB / 1.154 GB, free: 33.3 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002518/0.8286, allocations: 1.786 MB / 1.156 GB, free: 32.08 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0008812/0.8295, allocations: 0.5453 MB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.8296, allocations: 7.156 kB / 1.156 GB, free: 31.7 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.8298, allocations: 26.59 kB / 1.156 GB, free: 31.68 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 7.061e-05/0.8298, allocations: 26.27 kB / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.83, allocations: 67.75 kB / 1.156 GB, free: 31.63 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.8302, allocations: 165.6 kB / 1.156 GB, free: 31.55 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.8303, allocations: 35.69 kB / 1.157 GB, free: 31.53 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.838e-05/0.8304, allocations: 60.73 kB / 1.157 GB, free: 31.5 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 7.047e-05/0.8305, allocations: 58.38 kB / 1.157 GB, free: 31.47 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.8305, allocations: 10.44 kB / 1.157 GB, free: 31.47 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 1.936e-05/0.8305, allocations: 12.38 kB / 1.157 GB, free: 31.46 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.232e-05/0.8306, allocations: 28.81 kB / 1.157 GB, free: 31.45 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 5.305e-05/0.8306, allocations: 54.92 kB / 1.157 GB, free: 31.41 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.8308, allocations: 139.8 kB / 1.157 GB, free: 31.35 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.8308, allocations: 0 / 1.157 GB, free: 31.35 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8308, allocations: 0 / 1.157 GB, free: 31.35 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.8308, allocations: 0 / 1.157 GB, free: 31.35 MB / 1.076 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.0006395/0.8314, allocations: 431.5 kB / 1.157 GB, free: 30.98 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.8315, allocations: 11.22 kB / 1.157 GB, free: 30.98 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.563e-05/0.8315, allocations: 20.38 kB / 1.157 GB, free: 30.97 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.8317, allocations: 183.7 kB / 1.157 GB, free: 30.8 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.8317, allocations: 7.438 kB / 1.157 GB, free: 30.8 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.8318, allocations: 15.94 kB / 1.157 GB, free: 30.8 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.832, allocations: 153.8 kB / 1.158 GB, free: 30.69 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.832, allocations: 3.938 kB / 1.158 GB, free: 30.69 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.832, allocations: 0 / 1.158 GB, free: 30.69 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.832, allocations: 2.719 kB / 1.158 GB, free: 30.69 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.8322, allocations: 71.86 kB / 1.158 GB, free: 30.67 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006422/0.8329, allocations: 0.6517 MB / 1.158 GB, free: 30.08 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.833, allocations: 52.92 kB / 1.158 GB, free: 30.04 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.388e-05/0.8331, allocations: 29.55 kB / 1.158 GB, free: 30.03 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.8331, allocations: 0 / 1.158 GB, free: 30.03 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001819/0.8333, allocations: 127.2 kB / 1.159 GB, free: 29.93 MB / 1.076 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.8333, allocations: 0 / 1.159 GB, free: 29.93 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0004445/0.8338, allocations: 172 kB / 1.159 GB, free: 29.85 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.8338, allocations: 134.8 kB / 1.159 GB, free: 29.7 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.8339, allocations: 183.1 kB / 1.159 GB, free: 29.57 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.8339, allocations: 36.48 kB / 1.159 GB, free: 29.53 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.834, allocations: 130.6 kB / 1.159 GB, free: 29.41 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.553e-05/0.834, allocations: 38.06 kB / 1.159 GB, free: 29.38 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.8341, allocations: 39.61 kB / 1.159 GB, free: 29.36 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.829e-05/0.8341, allocations: 331.4 kB / 1.16 GB, free: 29.04 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.8342, allocations: 35.97 kB / 1.16 GB, free: 29.03 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.8344, allocations: 145.3 kB / 1.16 GB, free: 28.88 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.8346, allocations: 201.7 kB / 1.16 GB, free: 28.7 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.8346, allocations: 2.844 kB / 1.16 GB, free: 28.7 MB / 1.076 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003369/0.8349, allocations: 216.4 kB / 1.16 GB, free: 28.59 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.835, allocations: 5.719 kB / 1.16 GB, free: 28.59 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.835, allocations: 2.719 kB / 1.16 GB, free: 28.59 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.835, allocations: 5.812 kB / 1.16 GB, free: 28.59 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.8351, allocations: 30.97 kB / 1.16 GB, free: 28.59 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.8351, allocations: 12.64 kB / 1.16 GB, free: 28.58 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.8352, allocations: 34.81 kB / 1.16 GB, free: 28.56 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.8353, allocations: 8.469 kB / 1.16 GB, free: 28.56 MB / 1.076 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 7.056e-05/0.8353, allocations: 133.6 kB / 1.16 GB, free: 28.43 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.8354, allocations: 19.64 kB / 1.16 GB, free: 28.43 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/0.8354, allocations: 22.91 kB / 1.16 GB, free: 28.41 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.8354, allocations: 0 / 1.16 GB, free: 28.41 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.8354, allocations: 2.844 kB / 1.16 GB, free: 28.41 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.8354, allocations: 3.375 kB / 1.16 GB, free: 28.41 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005634/0.836, allocations: 458.5 kB / 1.161 GB, free: 28.05 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.836, allocations: 4.062 kB / 1.161 GB, free: 28.04 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.8361, allocations: 18.47 kB / 1.161 GB, free: 28.04 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.8361, allocations: 2.906 kB / 1.161 GB, free: 28.04 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.8361, allocations: 2.844 kB / 1.161 GB, free: 28.04 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.8361, allocations: 3.984 kB / 1.161 GB, free: 28.04 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.8361, allocations: 7.031 kB / 1.161 GB, free: 28.04 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003971/0.8365, allocations: 360.9 kB / 1.161 GB, free: 27.76 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.344e-05/0.8365, allocations: 14.25 kB / 1.161 GB, free: 27.75 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.8365, allocations: 2.938 kB / 1.161 GB, free: 27.75 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.8367, allocations: 16.14 kB / 1.161 GB, free: 27.75 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.8367, allocations: 17.45 kB / 1.161 GB, free: 27.74 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.8368, allocations: 6.219 kB / 1.161 GB, free: 27.74 MB / 1.076 GB Notification: Performance of sorting global known variables: time 6.821e-05/0.8368, allocations: 136.4 kB / 1.161 GB, free: 27.65 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.8368, allocations: 4 kB / 1.161 GB, free: 27.64 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003389/0.8372, allocations: 30.45 kB / 1.161 GB, free: 27.64 MB / 1.076 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 8.067e-05/0.8372, allocations: 107.1 kB / 1.162 GB, free: 27.54 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000292/0.8375, allocations: 106.4 kB / 1.162 GB, free: 27.52 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.8375, allocations: 3.375 kB / 1.162 GB, free: 27.52 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.8377, allocations: 48.94 kB / 1.162 GB, free: 27.5 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00054/0.8382, allocations: 74.88 kB / 1.162 GB, free: 27.48 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004604/0.8387, allocations: 353.3 kB / 1.162 GB, free: 27.21 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.203e-05/0.8387, allocations: 119.3 kB / 1.162 GB, free: 27.12 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.998e-05/0.8388, allocations: 21.08 kB / 1.162 GB, free: 27.12 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.838e-05/0.8388, allocations: 17.34 kB / 1.162 GB, free: 27.11 MB / 1.076 GB Notification: Performance of SimCode: time 2.9e-07/0.8388, allocations: 0 / 1.162 GB, free: 27.11 MB / 1.076 GB Notification: Performance of Templates: time 0.004693/0.8435, allocations: 2.123 MB / 1.164 GB, free: 26.84 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.522791904048063]