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.001495/0.001495, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001509/0.001509, allocations: 216.4 kB / 22.99 MB, free: 4.945 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.526/1.526, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.852/2.852, allocations: 476 MB / 0.7707 GB, free: 4.703 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: 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.002215/0.002215, allocations: 68.58 kB / 1.118 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3282, allocations: 170 MB / 1.284 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003529/0.3317, allocations: 1.793 MB / 1.286 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3329, allocations: 0.5455 MB / 1.286 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.333, allocations: 7.938 kB / 1.286 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.3332, allocations: 23.73 kB / 1.286 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.249e-05/0.3332, allocations: 27.72 kB / 1.286 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.3335, allocations: 71.84 kB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002659/0.3337, allocations: 167.5 kB / 1.286 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.3339, allocations: 45.64 kB / 1.286 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.687e-05/0.334, allocations: 51.73 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.175e-05/0.3341, allocations: 59.62 kB / 1.287 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.843e-05/0.3341, allocations: 16 kB / 1.287 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.5e-05/0.3341, allocations: 12 kB / 1.287 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.888e-05/0.3342, allocations: 23.92 kB / 1.287 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.268e-05/0.3343, allocations: 55.66 kB / 1.287 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.3345, allocations: 131.3 kB / 1.287 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3345, allocations: 0 / 1.287 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3345, allocations: 0 / 1.287 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.3345, allocations: 0 / 1.287 GB, free: 8.859 MB / 0.9825 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.0008626/0.3354, allocations: 435.1 kB / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3354, allocations: 12.03 kB / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.3355, allocations: 20.8 kB / 1.287 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.3359, allocations: 170.2 kB / 1.287 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.3359, allocations: 12.36 kB / 1.287 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.3359, allocations: 12.38 kB / 1.287 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003314/0.3363, allocations: 142.2 kB / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.3363, allocations: 11.94 kB / 1.288 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.3363, allocations: 4 kB / 1.288 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.3363, allocations: 4 kB / 1.288 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/0.3365, allocations: 69.77 kB / 1.288 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.3376, allocations: 0.657 MB / 1.288 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.3377, allocations: 50.55 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.3378, allocations: 28.84 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.3379, allocations: 0 / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.3381, allocations: 126.7 kB / 1.288 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.3381, allocations: 0 / 1.288 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0005446/0.3387, allocations: 169.9 kB / 1.289 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.3388, allocations: 136.5 kB / 1.289 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/0.339, allocations: 187.5 kB / 1.289 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.339, allocations: 29.7 kB / 1.289 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3391, allocations: 132.1 kB / 1.289 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.3391, allocations: 39.69 kB / 1.289 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.591e-05/0.3392, allocations: 41.7 kB / 1.289 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3394, allocations: 326.8 kB / 1.289 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.3395, allocations: 35.97 kB / 1.289 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.3397, allocations: 146.5 kB / 1.29 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.3401, allocations: 206.3 kB / 1.29 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3401, allocations: 0 / 1.29 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004183/0.3405, allocations: 213.1 kB / 1.29 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3405, allocations: 8 kB / 1.29 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3405, allocations: 4 kB / 1.29 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.3405, allocations: 4 kB / 1.29 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.3407, allocations: 32.42 kB / 1.29 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.3407, allocations: 15.94 kB / 1.29 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.3408, allocations: 20.19 kB / 1.29 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.3408, allocations: 12 kB / 1.29 GB, free: 5.062 MB / 0.9825 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.0001298/0.341, allocations: 139.7 kB / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.341, allocations: 19.84 kB / 1.29 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.371e-05/0.341, allocations: 25.34 kB / 1.29 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.3411, allocations: 7.984 kB / 1.29 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3411, allocations: 0 / 1.29 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.3411, allocations: 4 kB / 1.29 GB, free: 4.852 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007467/0.3418, allocations: 445.3 kB / 1.291 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3418, allocations: 4 kB / 1.291 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.3419, allocations: 23.92 kB / 1.291 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.342, allocations: 3.984 kB / 1.291 GB, free: 4.348 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.342, allocations: 4 kB / 1.291 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.342, allocations: 0 / 1.291 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.342, allocations: 3.938 kB / 1.291 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000548/0.3425, allocations: 360.3 kB / 1.291 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.528e-05/0.3426, allocations: 19.84 kB / 1.291 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.3426, allocations: 8 kB / 1.291 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.3427, allocations: 12.03 kB / 1.291 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.669e-05/0.3428, allocations: 27.78 kB / 1.291 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.3428, allocations: 4 kB / 1.291 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001155/0.3429, allocations: 133.6 kB / 1.291 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3429, allocations: 0 / 1.291 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003253/0.3433, allocations: 32 kB / 1.291 GB, free: 3.734 MB / 0.9825 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.0001355/0.3434, allocations: 95.78 kB / 1.291 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003466/0.3437, allocations: 116.7 kB / 1.292 GB, free: 3.52 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3437, allocations: 0 / 1.292 GB, free: 3.52 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.3439, allocations: 52.03 kB / 1.292 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000567/0.3445, allocations: 64.3 kB / 1.292 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007047/0.3452, allocations: 390.2 kB / 1.292 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.3453, allocations: 112.2 kB / 1.292 GB, free: 2.859 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.642e-05/0.3454, allocations: 19.44 kB / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3454, allocations: 0 / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of Templates: time 0.004367/0.3497, allocations: 2.149 MB / 1.294 GB, free: 0.7031 MB / 0.9825 GB " [Timeout remaining time 299] 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/jenkins1/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: 12.09388193488121]