Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001462/0.001462, allocations: 102.1 kB / 16.35 MB, free: 5.824 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.001654/0.001654, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.409/2.409, allocations: 437.1 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001255, allocations: 72.91 kB / 0.8707 GB, free: 1.453 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2928, allocations: 151.6 MB / 1.019 GB, free: 9.859 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003229/0.2961, allocations: 1.818 MB / 1.021 GB, free: 8.027 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009122/0.297, allocations: 0.5492 MB / 1.021 GB, free: 7.473 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.082e-05/0.2971, allocations: 3.938 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.2972, allocations: 23.73 kB / 1.021 GB, free: 7.445 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.63e-05/0.2973, allocations: 23.73 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.2976, allocations: 75.84 kB / 1.021 GB, free: 7.348 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.2978, allocations: 163.5 kB / 1.021 GB, free: 7.188 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.2979, allocations: 53.64 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.156e-05/0.298, allocations: 55.72 kB / 1.021 GB, free: 7.078 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.774e-05/0.2981, allocations: 59.64 kB / 1.022 GB, free: 7.02 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.2982, allocations: 8 kB / 1.022 GB, free: 7.012 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 2.148e-05/0.2982, allocations: 12 kB / 1.022 GB, free: 7 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.604e-05/0.2982, allocations: 31.84 kB / 1.022 GB, free: 6.969 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.979e-05/0.2983, allocations: 63.61 kB / 1.022 GB, free: 6.906 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.2985, allocations: 139.4 kB / 1.022 GB, free: 6.77 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.2985, allocations: 0 / 1.022 GB, free: 6.77 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2985, allocations: 0 / 1.022 GB, free: 6.77 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.2985, allocations: 0 / 1.022 GB, free: 6.77 MB / 0.795 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.000704/0.2992, allocations: 474.7 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.2993, allocations: 8.922 kB / 1.022 GB, free: 6.25 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.699e-05/0.2993, allocations: 16.75 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.2996, allocations: 235.8 kB / 1.022 GB, free: 5.965 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.2996, allocations: 20.22 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.2997, allocations: 12.38 kB / 1.023 GB, free: 5.934 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.3, allocations: 150.2 kB / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3, allocations: 0 / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.3, allocations: 8 kB / 1.023 GB, free: 5.758 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.3, allocations: 4 kB / 1.023 GB, free: 5.754 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002302/0.3003, allocations: 71.88 kB / 1.023 GB, free: 5.684 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009259/0.3012, allocations: 0.7392 MB / 1.023 GB, free: 4.879 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.3014, allocations: 42.56 kB / 1.023 GB, free: 4.828 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3015, allocations: 36.83 kB / 1.024 GB, free: 4.789 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.3015, allocations: 3.938 kB / 1.024 GB, free: 4.785 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/0.3017, allocations: 126.6 kB / 1.024 GB, free: 4.637 MB / 0.795 GB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.3018, allocations: 4 kB / 1.024 GB, free: 4.633 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.0004758/0.3022, allocations: 165.3 kB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.3023, allocations: 136.8 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/0.3025, allocations: 195 kB / 1.024 GB, free: 4.102 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.3025, allocations: 33.7 kB / 1.024 GB, free: 4.062 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.451e-05/0.3026, allocations: 131.9 kB / 1.024 GB, free: 3.93 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.3027, allocations: 35.55 kB / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.132e-05/0.3028, allocations: 41.7 kB / 1.024 GB, free: 3.848 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.3029, allocations: 326.8 kB / 1.025 GB, free: 3.52 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.303, allocations: 39.97 kB / 1.025 GB, free: 3.48 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.3032, allocations: 155.9 kB / 1.025 GB, free: 3.277 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002924/0.3035, allocations: 198.3 kB / 1.025 GB, free: 3.031 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3035, allocations: 8 kB / 1.025 GB, free: 3.023 MB / 0.795 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003754/0.3039, allocations: 205.2 kB / 1.025 GB, free: 2.816 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.3039, allocations: 8 kB / 1.025 GB, free: 2.809 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3039, allocations: 4 kB / 1.025 GB, free: 2.805 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3039, allocations: 4 kB / 1.025 GB, free: 2.801 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.3041, allocations: 31.92 kB / 1.025 GB, free: 2.77 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.3041, allocations: 7.938 kB / 1.025 GB, free: 2.762 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.3042, allocations: 32.14 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.3043, allocations: 12 kB / 1.025 GB, free: 2.719 MB / 0.795 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.0001027/0.3044, allocations: 137.7 kB / 1.025 GB, free: 2.574 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.3044, allocations: 19.75 kB / 1.025 GB, free: 2.555 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.3044, allocations: 21.39 kB / 1.026 GB, free: 2.539 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3045, allocations: 4.234 kB / 1.026 GB, free: 2.535 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3045, allocations: 0 / 1.026 GB, free: 2.535 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.3045, allocations: 3.984 kB / 1.026 GB, free: 2.531 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007525/0.3052, allocations: 0.5209 MB / 1.026 GB, free: 1.953 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.3052, allocations: 0 / 1.026 GB, free: 1.953 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.3054, allocations: 15.98 kB / 1.026 GB, free: 1.938 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.3054, allocations: 0 / 1.026 GB, free: 1.938 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.3054, allocations: 11.94 kB / 1.026 GB, free: 1.926 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3054, allocations: 0 / 1.026 GB, free: 1.926 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3054, allocations: 7.938 kB / 1.026 GB, free: 1.918 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000554/0.306, allocations: 348.3 kB / 1.026 GB, free: 1.555 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.306, allocations: 92.86 kB / 1.026 GB, free: 1.445 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.274e-05/0.3061, allocations: 16.03 kB / 1.027 GB, free: 1.43 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.3063, allocations: 11.92 kB / 1.027 GB, free: 1.418 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.818e-05/0.3063, allocations: 19.92 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.3063, allocations: 4 kB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000105/0.3065, allocations: 136.6 kB / 1.027 GB, free: 1.262 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3065, allocations: 3.938 kB / 1.027 GB, free: 1.258 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000327/0.3068, allocations: 28 kB / 1.027 GB, free: 1.23 MB / 0.795 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.0001229/0.3069, allocations: 115.2 kB / 1.027 GB, free: 1.105 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003148/0.3072, allocations: 111.8 kB / 1.027 GB, free: 0.9961 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3073, allocations: 1 kB / 1.027 GB, free: 0.9961 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.3074, allocations: 56.09 kB / 1.027 GB, free: 0.9414 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005484/0.308, allocations: 66 kB / 1.027 GB, free: 0.8789 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005612/0.3085, allocations: 344.6 kB / 1.027 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.3088, allocations: 0.7281 MB / 1.028 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.171e-05/0.3089, allocations: 13.88 kB / 1.028 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.3089, allocations: 19.44 kB / 1.028 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.3089, allocations: 0 / 1.028 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of Templates: time 0.004725/0.3137, allocations: 2.016 MB / 1.03 GB, free: 13.73 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches