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.001837/0.001837, allocations: 80.45 kB / 19.18 MB, free: 2.52 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.002251/0.002251, allocations: 160.8 kB / 22.45 MB, free: 5.375 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.483/1.483, allocations: 177.2 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.858/2.858, allocations: 377.8 MB / 0.6221 GB, free: 12.55 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 0.9814 GB, free: 10.87 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.387e-05/2.519e-05, allocations: 6.219 kB / 0.9814 GB, free: 10.86 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003071/0.003096, allocations: 1.791 MB / 0.9832 GB, free: 9.055 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.004237, allocations: 0.5453 MB / 0.9837 GB, free: 8.504 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.971e-05/0.004337, allocations: 7.938 kB / 0.9837 GB, free: 8.496 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.004471, allocations: 27.73 kB / 0.9838 GB, free: 8.469 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.18e-05/0.004553, allocations: 23.73 kB / 0.9838 GB, free: 8.445 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.00478, allocations: 71.84 kB / 0.9838 GB, free: 8.375 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002698/0.00505, allocations: 175.3 kB / 0.984 GB, free: 8.203 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.005204, allocations: 33.78 kB / 0.984 GB, free: 8.172 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.005345, allocations: 79.8 kB / 0.9841 GB, free: 8.094 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.884e-05/0.005444, allocations: 47.81 kB / 0.9842 GB, free: 8.047 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.005473, allocations: 8 kB / 0.9842 GB, free: 8.039 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.801e-05/0.005501, allocations: 12 kB / 0.9842 GB, free: 8.027 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.073e-05/0.005542, allocations: 31.84 kB / 0.9842 GB, free: 7.996 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.281e-05/0.005614, allocations: 35.92 kB / 0.9843 GB, free: 7.961 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.005845, allocations: 135.4 kB / 0.9844 GB, free: 7.828 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.005848, allocations: 0 / 0.9844 GB, free: 7.828 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.463e-06/0.00585, allocations: 3.938 kB / 0.9844 GB, free: 7.824 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.005855, allocations: 0 / 0.9844 GB, free: 7.824 MB / 0.8887 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.0008195/0.006675, allocations: 431.1 kB / 0.9848 GB, free: 7.367 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.006718, allocations: 12.03 kB / 0.9848 GB, free: 7.355 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.076e-05/0.006769, allocations: 20.84 kB / 0.9848 GB, free: 7.336 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.007117, allocations: 177.9 kB / 0.985 GB, free: 7.137 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.007133, allocations: 8.375 kB / 0.985 GB, free: 7.129 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.007167, allocations: 12.38 kB / 0.985 GB, free: 7.117 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.007504, allocations: 148.9 kB / 0.9852 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.007516, allocations: 4.188 kB / 0.9852 GB, free: 6.949 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.007532, allocations: 8.312 kB / 0.9852 GB, free: 6.941 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.007544, allocations: 11.94 kB / 0.9852 GB, free: 6.93 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/0.007789, allocations: 71.88 kB / 0.9853 GB, free: 6.859 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009466/0.008735, allocations: 0.6454 MB / 0.9859 GB, free: 6.168 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.008899, allocations: 42.55 kB / 0.9859 GB, free: 6.117 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.009028, allocations: 40.83 kB / 0.986 GB, free: 6.074 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.009047, allocations: 0 / 0.986 GB, free: 6.074 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.009321, allocations: 126.8 kB / 0.9861 GB, free: 5.926 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.009323, allocations: 0 / 0.9861 GB, free: 5.926 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0005338/0.009857, allocations: 165.4 kB / 0.9862 GB, free: 5.758 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.699e-05/0.009954, allocations: 140.7 kB / 0.9864 GB, free: 5.59 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.01013, allocations: 183.9 kB / 0.9866 GB, free: 5.402 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.01016, allocations: 25.7 kB / 0.9866 GB, free: 5.371 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.01027, allocations: 135.9 kB / 0.9867 GB, free: 5.234 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.852e-05/0.01031, allocations: 35.88 kB / 0.9867 GB, free: 5.199 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.719e-05/0.01039, allocations: 49.66 kB / 0.9868 GB, free: 5.145 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.01055, allocations: 322.8 kB / 0.9871 GB, free: 4.82 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.01068, allocations: 43.91 kB / 0.9871 GB, free: 4.777 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.0109, allocations: 152.5 kB / 0.9873 GB, free: 4.578 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/0.01125, allocations: 202.4 kB / 0.9875 GB, free: 4.328 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.01125, allocations: 0 / 0.9875 GB, free: 4.328 MB / 0.8887 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004306/0.01168, allocations: 217.2 kB / 0.9877 GB, free: 4.109 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.0117, allocations: 8 kB / 0.9877 GB, free: 4.102 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.01171, allocations: 4 kB / 0.9877 GB, free: 4.098 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.01173, allocations: 4.234 kB / 0.9877 GB, free: 4.094 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.01185, allocations: 31.92 kB / 0.9877 GB, free: 4.062 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.01187, allocations: 7.984 kB / 0.9877 GB, free: 4.055 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.01201, allocations: 28.22 kB / 0.9878 GB, free: 4.027 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.01204, allocations: 16 kB / 0.9878 GB, free: 4.012 MB / 0.8887 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.0001308/0.01217, allocations: 137.7 kB / 0.9879 GB, free: 3.867 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.717e-05/0.01222, allocations: 23.84 kB / 0.9879 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.982e-05/0.01228, allocations: 17.45 kB / 0.9879 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.01229, allocations: 4 kB / 0.988 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.01229, allocations: 0 / 0.988 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.0123, allocations: 7.938 kB / 0.988 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008065/0.0131, allocations: 457.2 kB / 0.9884 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.01311, allocations: 4 kB / 0.9884 GB, free: 3.328 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.01323, allocations: 11.98 kB / 0.9884 GB, free: 3.316 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.01323, allocations: 4 kB / 0.9884 GB, free: 3.312 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.01325, allocations: 4.312 kB / 0.9884 GB, free: 3.309 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.01325, allocations: 4 kB / 0.9884 GB, free: 3.305 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.01325, allocations: 7.938 kB / 0.9884 GB, free: 3.297 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006032/0.01386, allocations: 363.3 kB / 0.9888 GB, free: 2.922 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 2.642e-05/0.01388, allocations: 11.91 kB / 0.9888 GB, free: 2.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.01391, allocations: 4 kB / 0.9888 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.01408, allocations: 16.02 kB / 0.9888 GB, free: 2.891 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.01414, allocations: 15.92 kB / 0.9888 GB, free: 2.875 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.01415, allocations: 4 kB / 0.9888 GB, free: 2.871 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0001239/0.01427, allocations: 140.7 kB / 0.989 GB, free: 2.734 MB / 0.8887 GB Notification: Performance of sort global known variables: time 8e-08/0.01427, allocations: 0 / 0.989 GB, free: 2.734 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0003402/0.01461, allocations: 35.89 kB / 0.989 GB, free: 2.699 MB / 0.8887 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.0001363/0.01475, allocations: 107.2 kB / 0.9891 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0003313/0.01508, allocations: 107.7 kB / 0.9892 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.01508, allocations: 4 kB / 0.9892 GB, free: 2.477 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001495/0.01523, allocations: 44.91 kB / 0.9892 GB, free: 2.434 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005743/0.01581, allocations: 65.73 kB / 0.9893 GB, free: 2.371 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006107/0.01642, allocations: 324.7 kB / 0.9896 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.01654, allocations: 112.2 kB / 0.9897 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 6.69e-05/0.01661, allocations: 21.8 kB / 0.9897 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.01665, allocations: 16.5 kB / 0.9898 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of SimCode: time 3.9e-07/0.01665, allocations: 0 / 0.9898 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of Templates: time 0.006038/0.02269, allocations: 2.125 MB / 0.9918 GB, free: 15.79 MB / 0.9044 GB " [Timeout remaining time 300] 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 -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/jenkins/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: 7.9253562949597836]