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/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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001261/0.001261, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.403/2.403, allocations: 390.4 MB / 0.6655 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003866, allocations: 12 kB / 0.8149 GB, free: 14.07 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7555/0.7559, allocations: 142.3 MB / 0.9538 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002037/0.758, allocations: 1.482 MB / 0.9553 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009427/0.759, allocations: 0.5051 MB / 0.9558 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.7592, allocations: 2.625 kB / 0.9558 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.7593, allocations: 20.86 kB / 0.9558 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.151e-05/0.7594, allocations: 19.34 kB / 0.9558 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002519/0.7597, allocations: 57.06 kB / 0.9559 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.7599, allocations: 149.3 kB / 0.956 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.7601, allocations: 34.97 kB / 0.9561 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.439e-05/0.7602, allocations: 48.03 kB / 0.9561 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.029e-05/0.7603, allocations: 48.89 kB / 0.9562 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.7603, allocations: 4.812 kB / 0.9562 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.688e-05/0.7603, allocations: 3.562 kB / 0.9562 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.45e-05/0.7604, allocations: 17.05 kB / 0.9562 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.995e-05/0.7604, allocations: 46.55 kB / 0.9562 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.7605, allocations: 95.92 kB / 0.9563 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.7605, allocations: 0 / 0.9563 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.264e-06/0.7606, allocations: 0 / 0.9563 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.7606, allocations: 1.469 kB / 0.9563 GB, free: 6.137 MB / 0.7169 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.0006744/0.7613, allocations: 459.2 kB / 0.9568 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.7613, allocations: 10.88 kB / 0.9568 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.145e-05/0.7614, allocations: 37.22 kB / 0.9568 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.884e-05/0.7614, allocations: 24.41 kB / 0.9568 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.7616, allocations: 223.6 kB / 0.957 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.7617, allocations: 21.12 kB / 0.9571 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.828e-05/0.7617, allocations: 12.47 kB / 0.9571 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.762, allocations: 152.8 kB / 0.9572 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.762, allocations: 5.062 kB / 0.9572 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.7621, allocations: 9.047 kB / 0.9572 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.7621, allocations: 3.344 kB / 0.9572 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002326/0.7623, allocations: 78.61 kB / 0.9573 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008096/0.7631, allocations: 0.7374 MB / 0.958 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.7633, allocations: 54.39 kB / 0.9581 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.933e-05/0.7634, allocations: 37.16 kB / 0.9581 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.7634, allocations: 5.484 kB / 0.9581 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000247/0.7637, allocations: 137.8 kB / 0.9582 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.7637, allocations: 0 / 0.9582 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004557/0.7641, allocations: 178.1 kB / 0.9584 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.7642, allocations: 134.9 kB / 0.9585 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.7643, allocations: 198.4 kB / 0.9587 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.7644, allocations: 35.58 kB / 0.9588 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.692e-05/0.7644, allocations: 127.9 kB / 0.9589 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.7645, allocations: 32.66 kB / 0.9589 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.762e-06/0.7645, allocations: 1.562 kB / 0.9589 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.19e-05/0.7645, allocations: 330.7 kB / 0.9592 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.7647, allocations: 42.28 kB / 0.9593 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.7648, allocations: 150.2 kB / 0.9594 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.765, allocations: 62.53 kB / 0.9595 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.765, allocations: 1.344 kB / 0.9595 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003514/0.7653, allocations: 218.1 kB / 0.9597 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.7654, allocations: 15 kB / 0.9597 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.7654, allocations: 4.094 kB / 0.9597 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.7654, allocations: 13.5 kB / 0.9597 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.7655, allocations: 37.98 kB / 0.9598 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.7655, allocations: 5.5 kB / 0.9598 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.7657, allocations: 32.33 kB / 0.9598 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.7657, allocations: 12.19 kB / 0.9598 GB, free: 2.996 MB / 0.7169 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,sampleTrigger.y,$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 8.858e-05/0.7658, allocations: 140.4 kB / 0.9599 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.7658, allocations: 17.44 kB / 0.96 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.956e-05/0.7659, allocations: 21.48 kB / 0.96 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.7659, allocations: 10.67 kB / 0.96 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.7659, allocations: 1.375 kB / 0.96 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.7659, allocations: 1.375 kB / 0.96 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006029/0.7665, allocations: 0.5228 MB / 0.9605 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.7665, allocations: 5.328 kB / 0.9605 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.7666, allocations: 19.11 kB / 0.9605 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.7667, allocations: 9.312 kB / 0.9605 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.7667, allocations: 5.375 kB / 0.9605 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.7667, allocations: 2.75 kB / 0.9605 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7667, allocations: 5.312 kB / 0.9605 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004093/0.7671, allocations: 370.4 kB / 0.9609 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.7671, allocations: 97.84 kB / 0.961 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.7672, allocations: 10.34 kB / 0.961 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.7674, allocations: 19.17 kB / 0.961 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.7674, allocations: 13.67 kB / 0.961 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.7674, allocations: 8.219 kB / 0.961 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.848e-05/0.7675, allocations: 140.3 kB / 0.9612 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7675, allocations: 0 / 0.9612 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003435/0.7679, allocations: 27.53 kB / 0.9612 GB, free: 1.785 MB / 0.7169 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 (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.0006489/0.7685, allocations: 0.9243 MB / 0.9621 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003326/0.7689, allocations: 129.6 kB / 0.9622 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7689, allocations: 0 / 0.9622 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.769, allocations: 57.42 kB / 0.9623 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005452/0.7696, allocations: 67.88 kB / 0.9623 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.7712, allocations: 1.105 MB / 0.9634 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.7715, allocations: 0.7213 MB / 0.9641 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.096e-05/0.7716, allocations: 18.64 kB / 0.9641 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.434e-05/0.7717, allocations: 49.67 kB / 0.9642 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of SimCode: time 2.81e-07/0.7717, allocations: 0 / 0.9642 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01442/0.7861, allocations: 3.556 MB / 0.9677 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/0.7863, allocations: 188 kB / 0.9678 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.637, allocations: 0 / 0.9678 GB, free: 13.3 MB / 0.7325 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