Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.958/1.958, allocations: 387.1 MB / 399.7 MB, free: 9.473 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009892/0.0009892, allocations: 179 kB / 492.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 221.3 MB / 0.7871 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008067/0.0008067, allocations: 101.3 kB / 0.9267 GB, free: 13.91 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.938e-05/2.94e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2079, allocations: 142.4 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.775/0.9829, allocations: 151.1 MB / 1.36 GB, free: 18.99 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.9832, allocations: 77.55 kB / 1.36 GB, free: 18.99 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008778/0.992, allocations: 3.523 MB / 1.364 GB, free: 34.47 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.795e-06/0.992, allocations: 0 / 1.364 GB, free: 34.47 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.299e-05/0.992, allocations: 5.375 kB / 1.364 GB, free: 34.47 MB / 0.8386 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.0004757/0.9925, allocations: 442.6 kB / 1.364 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.9926, allocations: 11.69 kB / 1.364 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.9926, allocations: 40.7 kB / 1.364 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.894e-05/0.9927, allocations: 19.38 kB / 1.364 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.9929, allocations: 236.8 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.9929, allocations: 7.156 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.625e-05/0.9929, allocations: 10.75 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.9931, allocations: 133.7 kB / 1.364 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.9932, allocations: 7.812 kB / 1.364 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.9932, allocations: 3.562 kB / 1.364 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.9932, allocations: 3.844 kB / 1.364 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.327e-05/0.9933, allocations: 48.94 kB / 1.365 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000821/0.9941, allocations: 0.7583 MB / 1.365 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.471e-05/0.9942, allocations: 40.67 kB / 1.365 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.833e-05/0.9942, allocations: 15.89 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.9943, allocations: 3.875 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/0.9944, allocations: 117.6 kB / 1.365 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.183e-06/0.9944, allocations: 0 / 1.365 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002174/0.9947, allocations: 109.7 kB / 1.366 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.9947, allocations: 136.3 kB / 1.366 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.9949, allocations: 172.1 kB / 1.366 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.9949, allocations: 36.55 kB / 1.366 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.603e-05/0.995, allocations: 132 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.995, allocations: 33.47 kB / 1.366 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-06/0.995, allocations: 11.38 kB / 1.366 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.777e-05/0.9951, allocations: 326.5 kB / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.875e-05/0.9952, allocations: 26.62 kB / 1.366 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.977e-05/0.9952, allocations: 132 kB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.6e-05/0.9953, allocations: 49.98 kB / 1.367 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.9953, allocations: 3.875 kB / 1.367 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002145/0.9955, allocations: 172.6 kB / 1.367 GB, free: 32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.9956, allocations: 9.062 kB / 1.367 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.9956, allocations: 7.844 kB / 1.367 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.9956, allocations: 9.172 kB / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.9957, allocations: 38.95 kB / 1.367 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.9957, allocations: 9.203 kB / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.9959, allocations: 30.97 kB / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.9959, allocations: 10.81 kB / 1.367 GB, free: 31.98 MB / 0.8386 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 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.597e-05/0.996, allocations: 124.6 kB / 1.367 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.996, allocations: 21.02 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.908e-05/0.996, allocations: 17.34 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.9961, allocations: 1.219 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.9961, allocations: 3.844 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.9961, allocations: 0 / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005016/0.9966, allocations: 0.4901 MB / 1.367 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.9966, allocations: 0 / 1.367 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.9967, allocations: 22.27 kB / 1.367 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.9967, allocations: 3.844 kB / 1.367 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.9967, allocations: 2.812 kB / 1.367 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.9968, allocations: 6.703 kB / 1.367 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.9968, allocations: 3.953 kB / 1.367 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002699/0.997, allocations: 361 kB / 1.368 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.9971, allocations: 96.48 kB / 1.368 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.9971, allocations: 4 kB / 1.368 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.9973, allocations: 24.44 kB / 1.368 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.975e-05/0.9973, allocations: 13.19 kB / 1.368 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.9973, allocations: 7.656 kB / 1.368 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.174e-05/0.9974, allocations: 141.1 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9974, allocations: 0 / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002806/0.9977, allocations: 25.75 kB / 1.368 GB, free: 30.98 MB / 0.8386 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,intWitRes1.trigger,$whenCondition2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005285/0.9983, allocations: 1.1 MB / 1.369 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001536/0.9984, allocations: 92.53 kB / 1.369 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9984, allocations: 0 / 1.369 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.328e-05/0.9985, allocations: 33.59 kB / 1.369 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.9989, allocations: 67.05 kB / 1.369 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005584/0.9995, allocations: 318.2 kB / 1.37 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.9997, allocations: 0.7297 MB / 1.37 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.669e-05/0.9998, allocations: 18.72 kB / 1.37 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.9998, allocations: 47.06 kB / 1.37 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of SimCode: time 9.51e-07/0.9999, allocations: 0 / 1.37 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01332/1.013, allocations: 3.516 MB / 1.374 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/1.013, allocations: 163 kB / 1.374 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.605/2.618, allocations: 1.625 kB / 1.374 GB, free: 28.48 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat