Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009525/0.0009525, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001477, allocations: 187.7 kB / 16.92 MB, free: 6.773 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.321/1.321, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.64/2.64, allocations: 462.6 MB / 0.7371 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 11.77 kB / 0.9034 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3222, allocations: 159.6 MB / 1.059 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002055/0.3243, allocations: 1.518 MB / 1.061 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009715/0.3253, allocations: 0.5492 MB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.3254, allocations: 4 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.3256, allocations: 15.8 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.67e-05/0.3257, allocations: 15.86 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.326, allocations: 63.88 kB / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002461/0.3262, allocations: 163.5 kB / 1.062 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.3264, allocations: 45.64 kB / 1.062 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.846e-05/0.3265, allocations: 39.8 kB / 1.062 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.725e-05/0.3266, allocations: 47.66 kB / 1.062 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.3266, allocations: 7.984 kB / 1.062 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.782e-05/0.3266, allocations: 11.94 kB / 1.062 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.448e-05/0.3267, allocations: 23.86 kB / 1.062 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.742e-05/0.3268, allocations: 81.3 kB / 1.062 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.3269, allocations: 88.06 kB / 1.062 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3269, allocations: 0 / 1.062 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3269, allocations: 0 / 1.062 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.83e-06/0.3269, allocations: 0 / 1.062 GB, free: 2.344 MB / 0.8106 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.0006716/0.3276, allocations: 454.9 kB / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3276, allocations: 11.97 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.538e-05/0.3277, allocations: 24.66 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.3279, allocations: 227.9 kB / 1.063 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.328, allocations: 12.31 kB / 1.063 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.446e-05/0.328, allocations: 16.28 kB / 1.063 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.3283, allocations: 151.7 kB / 1.063 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.3283, allocations: 0 / 1.063 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.3284, allocations: 15.92 kB / 1.063 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3284, allocations: 0 / 1.063 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002682/0.3287, allocations: 83.88 kB / 1.063 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008683/0.3295, allocations: 0.7393 MB / 1.064 GB, free: 468 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.3297, allocations: 54.56 kB / 1.064 GB, free: 404 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.3298, allocations: 36.83 kB / 1.064 GB, free: 364 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.3299, allocations: 0 / 1.064 GB, free: 364 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.3302, allocations: 142.6 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.3302, allocations: 0 / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0005167/0.3307, allocations: 181.5 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.3308, allocations: 128.5 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001808/0.331, allocations: 206.9 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.331, allocations: 25.7 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.534e-05/0.3311, allocations: 131.8 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.3311, allocations: 35.69 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.977e-05/0.3312, allocations: 29.7 kB / 1.065 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3313, allocations: 330.8 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.3314, allocations: 43.97 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.3316, allocations: 151 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003289/0.332, allocations: 214.4 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.332, allocations: 0 / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004383/0.3324, allocations: 221.1 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3324, allocations: 4 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3325, allocations: 4 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3325, allocations: 8 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.3326, allocations: 36.33 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3326, allocations: 4 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.3328, allocations: 35.83 kB / 1.066 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.3328, allocations: 8 kB / 1.066 GB, free: 14.25 MB / 0.8262 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.000106/0.3329, allocations: 137.7 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.333, allocations: 15.81 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.571e-05/0.333, allocations: 29.39 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.333, allocations: 0 / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.629e-06/0.333, allocations: 4 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.333, allocations: 3.938 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007676/0.3338, allocations: 0.5329 MB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3338, allocations: 320 / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.334, allocations: 19.98 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.334, allocations: 7.938 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.334, allocations: 4 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.334, allocations: 4 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.334, allocations: 7.938 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005307/0.3346, allocations: 376.1 kB / 1.067 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.3346, allocations: 88.92 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.3347, allocations: 12.03 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.3348, allocations: 15.98 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.3349, allocations: 15.92 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3349, allocations: 8 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001138/0.335, allocations: 144.5 kB / 1.067 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3351, allocations: 0 / 1.067 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003472/0.3354, allocations: 24 kB / 1.067 GB, free: 12.71 MB / 0.8262 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.000123/0.3355, allocations: 111.2 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003393/0.3359, allocations: 127.7 kB / 1.067 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3359, allocations: 0 / 1.067 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.3361, allocations: 65.03 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005915/0.3367, allocations: 53.33 kB / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006273/0.3373, allocations: 432.4 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.3376, allocations: 0.7206 MB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.3376, allocations: 15.44 kB / 1.068 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.3377, allocations: 0 / 1.068 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.004193/0.3419, allocations: 2.113 MB / 1.07 GB, free: 9.027 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches