Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_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.001724/0.001724, 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.002053/0.002053, allocations: 194 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.71/2.71, allocations: 469.8 MB / 0.7424 GB, free: 7.508 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 67.17 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2435, allocations: 159.2 MB / 1.064 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002736/0.2462, allocations: 1.817 MB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008138/0.2471, allocations: 0.5415 MB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.519e-05/0.2472, allocations: 7.938 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.2473, allocations: 23.73 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.084e-05/0.2473, allocations: 23.73 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.2475, allocations: 75.84 kB / 1.067 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000194/0.2477, allocations: 159.5 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.2479, allocations: 53.58 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.27e-05/0.248, allocations: 55.72 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.419e-05/0.248, allocations: 59.64 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.289e-05/0.2481, allocations: 16 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.947e-05/0.2481, allocations: 8 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.375e-05/0.2481, allocations: 27.86 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.146e-05/0.2482, allocations: 63.59 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.2483, allocations: 131.8 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2484, allocations: 3.938 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.635e-06/0.2484, allocations: 0 / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.087e-06/0.2484, allocations: 3.938 kB / 1.067 GB, free: 11.2 MB / 0.8262 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.0006434/0.249, allocations: 480.5 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.2491, allocations: 8.031 kB / 1.068 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.471e-05/0.2491, allocations: 42.73 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.755e-05/0.2491, allocations: 24.69 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.2494, allocations: 220.5 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.2494, allocations: 12.38 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.2494, allocations: 16.36 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.2497, allocations: 150 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.485e-06/0.2497, allocations: 4 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2497, allocations: 4 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2497, allocations: 4 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000223/0.25, allocations: 67.88 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008157/0.2508, allocations: 0.7392 MB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.2509, allocations: 54.53 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.2511, allocations: 36.83 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.2511, allocations: 0 / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.2513, allocations: 122.9 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 2.795e-06/0.2513, allocations: 0 / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004309/0.2517, allocations: 165.3 kB / 1.069 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/0.2518, allocations: 132.5 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.252, allocations: 203.2 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.252, allocations: 37.69 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.2521, allocations: 127.9 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.185e-05/0.2522, allocations: 35.55 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.113e-05/0.2522, allocations: 45.61 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.2524, allocations: 326.8 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.2525, allocations: 39.91 kB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.2527, allocations: 150.6 kB / 1.07 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003023/0.253, allocations: 202.5 kB / 1.07 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.253, allocations: 0 / 1.07 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003735/0.2534, allocations: 213.4 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.2534, allocations: 8 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2534, allocations: 4 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.2534, allocations: 4 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.2535, allocations: 35.91 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.2535, allocations: 4 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.2537, allocations: 27.83 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.2537, allocations: 16 kB / 1.071 GB, free: 7.098 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.0001111/0.2538, allocations: 144.5 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.2539, allocations: 19.8 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.2539, allocations: 17.41 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2539, allocations: 4 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2539, allocations: 0 / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.2539, allocations: 7.984 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006909/0.2546, allocations: 0.5096 MB / 1.071 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2546, allocations: 3.938 kB / 1.071 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.2547, allocations: 19.98 kB / 1.071 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2547, allocations: 4 kB / 1.071 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.2548, allocations: 7.984 kB / 1.071 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/0.2548, allocations: 7.938 kB / 1.071 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2548, allocations: 0 / 1.071 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004572/0.2552, allocations: 358.1 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.676e-05/0.2553, allocations: 88.92 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.2553, allocations: 8 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.2555, allocations: 19.97 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.851e-05/0.2555, allocations: 15.97 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.2556, allocations: 4 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001074/0.2557, allocations: 140.6 kB / 1.072 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2557, allocations: 0 / 1.072 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002981/0.256, allocations: 27.91 kB / 1.072 GB, free: 5.605 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.0007506/0.2567, allocations: 0.9016 MB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000286/0.257, allocations: 119.8 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.257, allocations: 0 / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.2572, allocations: 55.84 kB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.2577, allocations: 67.52 kB / 1.073 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.26, allocations: 2.277 MB / 1.075 GB, free: 1.969 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.2603, allocations: 0.7203 MB / 1.076 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.768e-05/0.2604, allocations: 25.66 kB / 1.076 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.581e-05/0.2605, allocations: 51.42 kB / 1.076 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.2605, allocations: 0 / 1.076 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.919/2.179, allocations: 3.963 MB / 1.08 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.937/12.12, allocations: 9.781 kB / 1.08 GB, free: 13.27 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches