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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 108 kB / 15.6 MB, free: 132 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.001458/0.001458, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.712/2.712, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 65.2 kB / 0.8992 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.267, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002949/0.27, allocations: 1.816 MB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009428/0.271, allocations: 0.5536 MB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.2711, allocations: 3.938 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.2712, allocations: 23.73 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.023e-05/0.2714, allocations: 23.73 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002176/0.2716, allocations: 71.84 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000241/0.2718, allocations: 167.5 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.272, allocations: 41.66 kB / 1.056 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.598e-05/0.2721, allocations: 63.7 kB / 1.056 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.295e-05/0.2721, allocations: 55.64 kB / 1.056 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.543e-05/0.2722, allocations: 12 kB / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.406e-05/0.2722, allocations: 12 kB / 1.056 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.223e-05/0.2722, allocations: 31.86 kB / 1.056 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.028e-05/0.2723, allocations: 67.59 kB / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.2725, allocations: 131.7 kB / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.393e-06/0.2725, allocations: 0 / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2725, allocations: 3.938 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.2725, allocations: 0 / 1.056 GB, free: 5.172 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.0006472/0.2732, allocations: 474.7 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.2732, allocations: 12.62 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.2733, allocations: 46.73 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.108e-05/0.2733, allocations: 16.75 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.2735, allocations: 223.9 kB / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.2736, allocations: 8.375 kB / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.324e-05/0.2736, allocations: 24.3 kB / 1.057 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.2739, allocations: 150 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.2739, allocations: 0 / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.2739, allocations: 0 / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.2739, allocations: 7.938 kB / 1.057 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.2741, allocations: 75.88 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008077/0.275, allocations: 0.7275 MB / 1.058 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.2751, allocations: 54.55 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.2752, allocations: 32.83 kB / 1.058 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.2753, allocations: 3.984 kB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.2755, allocations: 130.6 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.2755, allocations: 4 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004735/0.276, allocations: 161.4 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.2761, allocations: 132.5 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.2762, allocations: 195.2 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.2763, allocations: 29.7 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.372e-05/0.2763, allocations: 140.2 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.2764, allocations: 35.55 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.646e-05/0.2764, allocations: 37.72 kB / 1.059 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.173e-05/0.2765, allocations: 334.8 kB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.2767, allocations: 39.97 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.2768, allocations: 144.6 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.2771, allocations: 202.3 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2771, allocations: 0 / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003808/0.2775, allocations: 209 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.2775, allocations: 8.5 kB / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.2776, allocations: 8 kB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.2776, allocations: 4 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.2777, allocations: 35.91 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.2777, allocations: 11.98 kB / 1.059 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.2779, allocations: 27.83 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.2779, allocations: 8 kB / 1.059 GB, free: 1.082 MB / 0.8106 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.754e-05/0.278, allocations: 140.5 kB / 1.06 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.086e-05/0.278, allocations: 19.8 kB / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.924e-05/0.2781, allocations: 25.41 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.2781, allocations: 0 / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.2781, allocations: 4 kB / 1.06 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.2781, allocations: 3.984 kB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/0.2788, allocations: 0.5131 MB / 1.06 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2788, allocations: 4 kB / 1.06 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.2789, allocations: 12.3 kB / 1.06 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2789, allocations: 4 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.279, allocations: 7.984 kB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.279, allocations: 7.938 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.279, allocations: 0 / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004782/0.2795, allocations: 364.1 kB / 1.061 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/0.2795, allocations: 96.86 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.2796, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.2797, allocations: 19.97 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.2798, allocations: 16.34 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.2798, allocations: 12 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.829e-05/0.2799, allocations: 140.4 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2799, allocations: 0 / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003322/0.2803, allocations: 28 kB / 1.061 GB, free: 15.58 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.0006924/0.281, allocations: 0.9005 MB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003092/0.2813, allocations: 128 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2813, allocations: 4 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.2814, allocations: 47.91 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005309/0.282, allocations: 53.83 kB / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.2843, allocations: 2.264 MB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.2845, allocations: 0.7241 MB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.862e-05/0.2846, allocations: 29.66 kB / 1.065 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.274e-05/0.2847, allocations: 47.42 kB / 1.065 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of SimCode: time 3.9e-07/0.2847, allocations: 0 / 1.065 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.3062, allocations: 3.979 MB / 1.069 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.525/7.831, allocations: 12.23 kB / 1.069 GB, free: 7.246 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > 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