Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.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.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 107.6 kB / 16.27 MB, free: 6.414 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.001556/0.001556, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.361/1.361, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.275/2.275, allocations: 390.3 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 66.45 kB / 0.8132 GB, free: 33.07 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2787, allocations: 140.4 MB / 0.9503 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002354/0.2811, allocations: 0.8727 MB / 0.9511 GB, free: 7.953 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2828, allocations: 1.179 MB / 0.9523 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.697e-05/0.2829, allocations: 4 kB / 0.9523 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.344e-05/0.2829, allocations: 7.875 kB / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.588e-05/0.2831, allocations: 15.8 kB / 0.9523 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000546/0.2836, allocations: 151.6 kB / 0.9525 GB, free: 6.582 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.2838, allocations: 171.7 kB / 0.9526 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.284, allocations: 33.09 kB / 0.9527 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.2841, allocations: 71.77 kB / 0.9527 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.619e-05/0.2842, allocations: 63.73 kB / 0.9528 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.675e-05/0.2843, allocations: 20 kB / 0.9528 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.384e-05/0.2843, allocations: 27.98 kB / 0.9528 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.155e-05/0.2844, allocations: 19.92 kB / 0.9529 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.854e-05/0.2845, allocations: 75.69 kB / 0.9529 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.2847, allocations: 159.8 kB / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.2847, allocations: 0 / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.886e-06/0.2847, allocations: 0 / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.338e-06/0.2848, allocations: 4 kB / 0.9531 GB, free: 5.945 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006725/0.2854, allocations: 452.7 kB / 0.9535 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.2855, allocations: 12.03 kB / 0.9535 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.625e-05/0.2856, allocations: 12.84 kB / 0.9535 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005514/0.2861, allocations: 266.1 kB / 0.9538 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.2862, allocations: 4.375 kB / 0.9538 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.889e-05/0.2862, allocations: 12.38 kB / 0.9538 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.2864, allocations: 94.2 kB / 0.9539 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.2865, allocations: 3.938 kB / 0.9539 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.2865, allocations: 0 / 0.9539 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.2865, allocations: 4 kB / 0.9539 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/0.2867, allocations: 43.95 kB / 0.954 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007295/0.2874, allocations: 396.5 kB / 0.9543 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.2875, allocations: 38.56 kB / 0.9544 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.181e-05/0.2876, allocations: 28.83 kB / 0.9544 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.2877, allocations: 0 / 0.9544 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.2879, allocations: 103.3 kB / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.288, allocations: 0 / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0004479/0.2884, allocations: 137.4 kB / 0.9546 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.2885, allocations: 63.28 kB / 0.9547 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.2886, allocations: 145.5 kB / 0.9548 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.898e-05/0.2886, allocations: 29.7 kB / 0.9549 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.162e-05/0.2887, allocations: 124 kB / 0.955 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.2888, allocations: 27.61 kB / 0.955 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.52e-05/0.2889, allocations: 41.7 kB / 0.955 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.289, allocations: 326.8 kB / 0.9553 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.2892, allocations: 43.95 kB / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.2894, allocations: 135.1 kB / 0.9555 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003461/0.2897, allocations: 200.6 kB / 0.9557 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.2898, allocations: 4 kB / 0.9557 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004921/0.2903, allocations: 239.3 kB / 0.9559 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.882e-05/0.2903, allocations: 37.69 kB / 0.956 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2903, allocations: 4 kB / 0.956 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.2903, allocations: 4 kB / 0.956 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.2905, allocations: 27.92 kB / 0.956 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.2905, allocations: 7.938 kB / 0.956 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.2907, allocations: 43.8 kB / 0.9561 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.2907, allocations: 16.06 kB / 0.9561 GB, free: 2.551 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.000108/0.2909, allocations: 131.3 kB / 0.9562 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.916e-05/0.2909, allocations: 7.906 kB / 0.9562 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.545e-05/0.2909, allocations: 12.72 kB / 0.9562 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2909, allocations: 4 kB / 0.9562 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.2909, allocations: 3.938 kB / 0.9562 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.291, allocations: 0 / 0.9562 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.2915, allocations: 402.4 kB / 0.9566 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.2915, allocations: 480 / 0.9566 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.985e-05/0.2916, allocations: 15.98 kB / 0.9566 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.2916, allocations: 3.938 kB / 0.9566 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.2917, allocations: 0 / 0.9566 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2917, allocations: 0 / 0.9566 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.2917, allocations: 11.88 kB / 0.9566 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004133/0.2921, allocations: 247.2 kB / 0.9569 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.601e-05/0.2922, allocations: 88.95 kB / 0.957 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.2922, allocations: 0 / 0.957 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.22e-05/0.2923, allocations: 8.031 kB / 0.957 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.966e-05/0.2923, allocations: 15.92 kB / 0.957 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.2923, allocations: 4 kB / 0.957 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.696e-05/0.2924, allocations: 109.2 kB / 0.9571 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2924, allocations: 0 / 0.9571 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002995/0.2927, allocations: 31.98 kB / 0.9571 GB, free: 1.379 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0001889/0.2929, allocations: 111.1 kB / 0.9572 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004104/0.2933, allocations: 187.8 kB / 0.9574 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.2933, allocations: 0 / 0.9574 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.2935, allocations: 43.97 kB / 0.9575 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.2938, allocations: 17.3 kB / 0.9575 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005753/0.2944, allocations: 298.6 kB / 0.9578 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/0.2947, allocations: 0.7084 MB / 0.9584 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.2947, allocations: 15.72 kB / 0.9585 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of SimCode: time 2.5e-07/0.2947, allocations: 4 kB / 0.9585 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of Templates: time 0.003595/0.2983, allocations: 1.717 MB / 0.9601 GB, free: 14.22 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches