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.001039/0.001039, allocations: 105.2 kB / 16.36 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 192 kB / 17.29 MB, free: 5.863 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.197/1.197, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.003/2.003, allocations: 390.3 MB / 0.6655 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.00116, allocations: 63.16 kB / 0.814 GB, free: 32.72 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2325, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002658/0.2352, allocations: 1.807 MB / 0.9529 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008096/0.2361, allocations: 0.5494 MB / 0.9534 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.015e-05/0.2361, allocations: 7.938 kB / 0.9534 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.2363, allocations: 19.73 kB / 0.9534 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.615e-05/0.2363, allocations: 23.69 kB / 0.9535 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001919/0.2365, allocations: 71.84 kB / 0.9535 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.2367, allocations: 171.5 kB / 0.9537 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.2369, allocations: 57.53 kB / 0.9538 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.143e-05/0.237, allocations: 59.72 kB / 0.9538 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.665e-05/0.237, allocations: 55.64 kB / 0.9539 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.2371, allocations: 12 kB / 0.9539 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.59e-05/0.2371, allocations: 8 kB / 0.9539 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.124e-05/0.2371, allocations: 27.91 kB / 0.9539 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.332e-05/0.2372, allocations: 67.61 kB / 0.954 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.2373, allocations: 139.3 kB / 0.9541 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2374, allocations: 0 / 0.9541 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2374, allocations: 0 / 0.9541 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.2374, allocations: 0 / 0.9541 GB, free: 4.961 MB / 0.7325 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.0006188/0.238, allocations: 470.8 kB / 0.9546 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.238, allocations: 8.031 kB / 0.9546 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.2381, allocations: 28.66 kB / 0.9546 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.2383, allocations: 228.5 kB / 0.9548 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.2384, allocations: 12.38 kB / 0.9548 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.845e-05/0.2384, allocations: 20.22 kB / 0.9548 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.2387, allocations: 150.2 kB / 0.955 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.2387, allocations: 0 / 0.955 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.2387, allocations: 4 kB / 0.955 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.2387, allocations: 4 kB / 0.955 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.2389, allocations: 71.83 kB / 0.9551 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007808/0.2397, allocations: 0.7392 MB / 0.9558 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.2399, allocations: 42.56 kB / 0.9558 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.967e-05/0.24, allocations: 40.83 kB / 0.9559 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.24, allocations: 0 / 0.9559 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002051/0.2402, allocations: 134.5 kB / 0.956 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.123e-06/0.2402, allocations: 0 / 0.956 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.000415/0.2406, allocations: 169.5 kB / 0.9561 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.2407, allocations: 132.5 kB / 0.9563 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.2409, allocations: 199 kB / 0.9565 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.2409, allocations: 29.7 kB / 0.9565 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.08e-05/0.241, allocations: 132.2 kB / 0.9566 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.241, allocations: 39.55 kB / 0.9567 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.2411, allocations: 41.7 kB / 0.9567 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2412, allocations: 326.8 kB / 0.957 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.2413, allocations: 35.97 kB / 0.957 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.2415, allocations: 152.1 kB / 0.9572 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.2417, allocations: 206.2 kB / 0.9574 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2418, allocations: 0 / 0.9574 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003428/0.2421, allocations: 213 kB / 0.9576 GB, free: 1 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.2421, allocations: 8 kB / 0.9576 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2421, allocations: 4.5 kB / 0.9576 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.2422, allocations: 8 kB / 0.9576 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.2423, allocations: 31.92 kB / 0.9576 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.2423, allocations: 4 kB / 0.9576 GB, free: 0.9453 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.2424, allocations: 27.83 kB / 0.9577 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.2424, allocations: 12 kB / 0.9577 GB, free: 0.9062 MB / 0.7325 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 9.487e-05/0.2425, allocations: 140.7 kB / 0.9578 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.2426, allocations: 15.81 kB / 0.9578 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.2426, allocations: 29.39 kB / 0.9579 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2426, allocations: 0 / 0.9579 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2426, allocations: 0 / 0.9579 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.2426, allocations: 4 kB / 0.9579 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006463/0.2433, allocations: 0.517 MB / 0.9584 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2433, allocations: 320 / 0.9584 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.2434, allocations: 19.98 kB / 0.9584 GB, free: 124 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2434, allocations: 4 kB / 0.9584 GB, free: 120 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.2434, allocations: 8 kB / 0.9584 GB, free: 112 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.2435, allocations: 4 kB / 0.9584 GB, free: 108 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.2435, allocations: 3.938 kB / 0.9584 GB, free: 104 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004312/0.2439, allocations: 356.2 kB / 0.9587 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.87e-05/0.244, allocations: 88.92 kB / 0.9588 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.244, allocations: 12.03 kB / 0.9588 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.2441, allocations: 11.98 kB / 0.9589 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.2442, allocations: 15.92 kB / 0.9589 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.2442, allocations: 4 kB / 0.9589 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001012/0.2443, allocations: 143.2 kB / 0.959 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2443, allocations: 0 / 0.959 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003018/0.2446, allocations: 24 kB / 0.959 GB, free: 15.42 MB / 0.7481 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.0001016/0.2447, allocations: 119.1 kB / 0.9591 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002857/0.245, allocations: 124.1 kB / 0.9593 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.245, allocations: 0 / 0.9593 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001297/0.2452, allocations: 47.91 kB / 0.9593 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/0.2457, allocations: 72.16 kB / 0.9594 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005386/0.2462, allocations: 349.3 kB / 0.9597 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.2465, allocations: 0.7241 MB / 0.9604 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.127e-05/0.2466, allocations: 21.67 kB / 0.9604 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.2466, allocations: 19.44 kB / 0.9605 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of SimCode: time 2e-07/0.2466, allocations: 0 / 0.9605 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of Templates: time 0.004438/0.2511, allocations: 2.009 MB / 0.9624 GB, free: 11.91 MB / 0.7481 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 -s cvode -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