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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.5/2.5, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001553/0.001553, allocations: 185.1 kB / 0.4901 GB, free: 2.223 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.633/1.633, allocations: 223.1 MB / 0.7992 GB, free: 14.66 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.001185/0.001185, allocations: 100.2 kB / 0.9396 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003501, allocations: 10.59 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2962, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1853/0.4816, allocations: 152 MB / 1.378 GB, free: 1.398 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.4819, allocations: 75.95 kB / 1.378 GB, free: 1.324 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009729/0.4917, allocations: 3.539 MB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.744e-06/0.4917, allocations: 0 / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.988e-05/0.4917, allocations: 7.938 kB / 1.381 GB, free: 13.76 MB / 0.8855 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.0007054/0.4925, allocations: 463.2 kB / 1.382 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.4925, allocations: 8.562 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.304e-05/0.4926, allocations: 51.14 kB / 1.382 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.029e-05/0.4926, allocations: 15.81 kB / 1.382 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.4929, allocations: 227.6 kB / 1.382 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.4929, allocations: 8 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.251e-05/0.493, allocations: 19.84 kB / 1.382 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.4933, allocations: 159 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.4933, allocations: 3.938 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.4933, allocations: 4 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.4933, allocations: 7.938 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.4936, allocations: 83.83 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.4946, allocations: 0.7589 MB / 1.383 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.4948, allocations: 50.55 kB / 1.383 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.4948, allocations: 8 kB / 1.383 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.4951, allocations: 126.9 kB / 1.383 GB, free: 11.58 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 3.346e-06/0.4951, allocations: 3.984 kB / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0004839/0.4956, allocations: 177.4 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/0.4957, allocations: 140.7 kB / 1.383 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.4958, allocations: 186.8 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.4959, allocations: 29.69 kB / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.317e-05/0.4959, allocations: 127.9 kB / 1.384 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.819e-05/0.496, allocations: 35.45 kB / 1.384 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.303e-06/0.496, allocations: 4 kB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.4961, allocations: 326.8 kB / 1.384 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.4963, allocations: 48.34 kB / 1.384 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.4964, allocations: 145.6 kB / 1.384 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.4966, allocations: 63.92 kB / 1.384 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4966, allocations: 0 / 1.384 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003917/0.497, allocations: 213.5 kB / 1.385 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.497, allocations: 14.09 kB / 1.385 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.497, allocations: 4 kB / 1.385 GB, free: 9.969 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.4971, allocations: 4 kB / 1.385 GB, free: 9.965 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.4972, allocations: 39.92 kB / 1.385 GB, free: 9.926 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.4972, allocations: 4 kB / 1.385 GB, free: 9.922 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.4974, allocations: 35.77 kB / 1.385 GB, free: 9.887 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.4974, allocations: 19.98 kB / 1.385 GB, free: 9.867 MB / 0.8855 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001336/0.4976, allocations: 140.1 kB / 1.385 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.545e-05/0.4976, allocations: 15.81 kB / 1.385 GB, free: 9.707 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.862e-05/0.4977, allocations: 21.39 kB / 1.385 GB, free: 9.691 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.4977, allocations: 4 kB / 1.385 GB, free: 9.688 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.4977, allocations: 3.938 kB / 1.385 GB, free: 9.684 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4977, allocations: 4 kB / 1.385 GB, free: 9.68 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008198/0.4985, allocations: 0.5249 MB / 1.385 GB, free: 9.098 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4985, allocations: 0 / 1.385 GB, free: 9.098 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.4987, allocations: 27.98 kB / 1.385 GB, free: 9.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.4987, allocations: 0 / 1.385 GB, free: 9.07 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.4987, allocations: 4 kB / 1.385 GB, free: 9.066 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.4987, allocations: 3.953 kB / 1.385 GB, free: 9.062 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.4987, allocations: 7.938 kB / 1.385 GB, free: 9.055 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005801/0.4993, allocations: 405.6 kB / 1.386 GB, free: 8.617 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.513e-05/0.4994, allocations: 96.95 kB / 1.386 GB, free: 8.504 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.4994, allocations: 11.94 kB / 1.386 GB, free: 8.492 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.4996, allocations: 15.98 kB / 1.386 GB, free: 8.477 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.359e-05/0.4997, allocations: 15.98 kB / 1.386 GB, free: 8.461 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.4997, allocations: 7.938 kB / 1.386 GB, free: 8.453 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001321/0.4998, allocations: 136.6 kB / 1.386 GB, free: 8.32 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.3e-07/0.4999, allocations: 4 kB / 1.386 GB, free: 8.316 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003454/0.5002, allocations: 35.92 kB / 1.386 GB, free: 8.281 MB / 0.8855 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 () * 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 (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.0009763/0.5012, allocations: 1.148 MB / 1.387 GB, free: 7.09 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003459/0.5015, allocations: 120.5 kB / 1.387 GB, free: 6.973 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5016, allocations: 4.312 kB / 1.387 GB, free: 6.969 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.5017, allocations: 60 kB / 1.387 GB, free: 6.91 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004662/0.5022, allocations: 61.34 kB / 1.387 GB, free: 6.852 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002793/0.505, allocations: 3.487 MB / 1.391 GB, free: 3.227 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.5053, allocations: 0.7245 MB / 1.392 GB, free: 2.477 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.614e-05/0.5054, allocations: 21.55 kB / 1.392 GB, free: 2.449 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.39e-05/0.5055, allocations: 47.42 kB / 1.392 GB, free: 2.402 MB / 0.8855 GB Notification: Performance of SimCode: time 3.21e-07/0.5055, allocations: 0 / 1.392 GB, free: 2.402 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.5222, allocations: 3.556 MB / 1.395 GB, free: 15 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/0.5225, allocations: 183.4 kB / 1.395 GB, free: 14.76 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.677/2.199, allocations: 0 / 1.395 GB, free: 14.76 MB / 0.9011 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat