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: "" <> 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.001221/0.001221, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001318/0.001318, allocations: 193.2 kB / 16.14 MB, free: 6.648 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.205/1.205, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.505/2.505, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 70.42 kB / 0.8985 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2244, allocations: 157.4 MB / 1.052 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002621/0.2271, allocations: 1.897 MB / 1.054 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007109/0.2278, allocations: 0.5298 MB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.01e-05/0.2279, allocations: 7.938 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.228, allocations: 15.86 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.173e-05/0.2281, allocations: 23.8 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.2282, allocations: 59.94 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.2284, allocations: 159.5 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.2285, allocations: 49.64 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.33e-05/0.2286, allocations: 51.72 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.434e-05/0.2287, allocations: 55.64 kB / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.2287, allocations: 8 kB / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.769e-05/0.2287, allocations: 4 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.46e-05/0.2288, allocations: 31.84 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.998e-05/0.2288, allocations: 59.61 kB / 1.055 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.229, allocations: 115.8 kB / 1.055 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.229, allocations: 0 / 1.055 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.52e-07/0.229, allocations: 4 kB / 1.055 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.229, allocations: 4 kB / 1.055 GB, free: 5.137 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.0005863/0.2296, allocations: 478.6 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2296, allocations: 15.97 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.373e-05/0.2297, allocations: 34.75 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.2297, allocations: 20.75 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.2299, allocations: 231.8 kB / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.2299, allocations: 8.375 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.23, allocations: 16.38 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002556/0.2302, allocations: 156.4 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.2302, allocations: 3.984 kB / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.2303, allocations: 8 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2303, allocations: 0 / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002155/0.2305, allocations: 73.44 kB / 1.056 GB, free: 4 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007483/0.2312, allocations: 0.7392 MB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.2314, allocations: 50.48 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.544e-05/0.2315, allocations: 28.84 kB / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.2315, allocations: 4 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.2317, allocations: 126.6 kB / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.203e-06/0.2317, allocations: 0 / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004159/0.2322, allocations: 165.5 kB / 1.057 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.2322, allocations: 136.5 kB / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.2324, allocations: 195 kB / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.2324, allocations: 29.7 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.827e-05/0.2325, allocations: 139.7 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.2325, allocations: 31.72 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.152e-05/0.2326, allocations: 37.7 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.008e-05/0.2327, allocations: 334.8 kB / 1.058 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.2328, allocations: 39.97 kB / 1.058 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.233, allocations: 148.6 kB / 1.058 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.2332, allocations: 202.3 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2332, allocations: 0 / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003447/0.2336, allocations: 213.1 kB / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2336, allocations: 4 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2336, allocations: 4 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.2336, allocations: 8 kB / 1.059 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.2338, allocations: 35.91 kB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.2338, allocations: 4 kB / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.2339, allocations: 32.48 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.2339, allocations: 16 kB / 1.059 GB, free: 1.035 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.092e-05/0.234, allocations: 137.7 kB / 1.059 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.636e-05/0.2341, allocations: 15.81 kB / 1.059 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.489e-05/0.2341, allocations: 21.39 kB / 1.059 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2341, allocations: 4 kB / 1.059 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2341, allocations: 0 / 1.059 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2341, allocations: 240 / 1.059 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006513/0.2348, allocations: 0.521 MB / 1.059 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2348, allocations: 0 / 1.059 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.2349, allocations: 19.92 kB / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2349, allocations: 0 / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.2349, allocations: 8 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.2349, allocations: 11.92 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2349, allocations: 0 / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.2354, allocations: 356.3 kB / 1.06 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.2354, allocations: 92.92 kB / 1.06 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.2355, allocations: 8 kB / 1.06 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.2356, allocations: 15.91 kB / 1.06 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/0.2357, allocations: 15.98 kB / 1.06 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.2357, allocations: 7.984 kB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.98e-05/0.2358, allocations: 136.6 kB / 1.06 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2358, allocations: 0 / 1.06 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003069/0.2361, allocations: 28 kB / 1.06 GB, free: 15.54 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.0006511/0.2368, allocations: 0.9004 MB / 1.061 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002729/0.2371, allocations: 116 kB / 1.061 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2371, allocations: 1 kB / 1.061 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.2372, allocations: 48.03 kB / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004908/0.2377, allocations: 63.88 kB / 1.061 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.2398, allocations: 2.297 MB / 1.064 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.2401, allocations: 0.7245 MB / 1.064 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.837e-05/0.2401, allocations: 21.95 kB / 1.064 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.035e-05/0.2402, allocations: 47.42 kB / 1.064 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2402, allocations: 3.938 kB / 1.064 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.234/1.474, allocations: 3.669 MB / 1.068 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002401/1.475, allocations: 207.6 kB / 1.068 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/3.345, allocations: 0 / 1.068 GB, free: 7.273 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