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.0009552/0.0009554, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.000984/0.0009841, allocations: 177.3 kB / 15.95 MB, free: 216 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.435/1.435, allocations: 223.2 MB / 239.9 MB, free: 5.379 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.447/2.447, allocations: 390.3 MB / 0.6653 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003181, allocations: 8 kB / 0.8146 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8434/0.8438, allocations: 142.3 MB / 0.9536 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002521/0.8464, allocations: 1.474 MB / 0.955 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.8475, allocations: 0.5124 MB / 0.9555 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.8477, allocations: 6.344 kB / 0.9555 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.27e-05/0.8477, allocations: 11.86 kB / 0.9555 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.8479, allocations: 31.75 kB / 0.9556 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.8481, allocations: 49.72 kB / 0.9556 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.8484, allocations: 115.4 kB / 0.9557 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.8485, allocations: 42.33 kB / 0.9558 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.807e-05/0.8486, allocations: 40.17 kB / 0.9558 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.94e-05/0.8487, allocations: 47.86 kB / 0.9559 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.8487, allocations: 4.094 kB / 0.9559 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.899e-05/0.8487, allocations: 5.219 kB / 0.9559 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.709e-05/0.8488, allocations: 23.33 kB / 0.9559 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.497e-05/0.8488, allocations: 47.11 kB / 0.9559 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.849, allocations: 83.27 kB / 0.956 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.849, allocations: 0 / 0.956 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.849, allocations: 5.375 kB / 0.956 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.849, allocations: 0 / 0.956 GB, free: 6.215 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.0006798/0.8497, allocations: 459.4 kB / 0.9565 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.8497, allocations: 9.875 kB / 0.9565 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.81e-05/0.8498, allocations: 53.95 kB / 0.9565 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.387e-05/0.8498, allocations: 25.73 kB / 0.9565 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.8501, allocations: 227 kB / 0.9568 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.8501, allocations: 11.95 kB / 0.9568 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.8502, allocations: 12.03 kB / 0.9568 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.8505, allocations: 150.6 kB / 0.9569 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.8505, allocations: 0 / 0.9569 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.8505, allocations: 9.234 kB / 0.9569 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.8506, allocations: 2.562 kB / 0.9569 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002506/0.8508, allocations: 83.16 kB / 0.957 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008737/0.8517, allocations: 0.7382 MB / 0.9577 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/0.8519, allocations: 53.17 kB / 0.9578 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.8519, allocations: 1.281 kB / 0.9578 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.8522, allocations: 134.2 kB / 0.9579 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.8522, allocations: 0 / 0.9579 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0005207/0.8527, allocations: 181.6 kB / 0.9581 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.8528, allocations: 130.7 kB / 0.9582 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001928/0.853, allocations: 199.3 kB / 0.9584 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.853, allocations: 30.7 kB / 0.9584 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.643e-05/0.8531, allocations: 128.7 kB / 0.9586 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.792e-05/0.8532, allocations: 40.19 kB / 0.9586 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.865e-06/0.8532, allocations: 5.188 kB / 0.9586 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.607e-05/0.8533, allocations: 327.2 kB / 0.9589 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.8534, allocations: 42.77 kB / 0.9589 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.8536, allocations: 150.7 kB / 0.9591 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.8538, allocations: 65.69 kB / 0.9592 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.8538, allocations: 0 / 0.9592 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004011/0.8542, allocations: 214.8 kB / 0.9594 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.8542, allocations: 12.16 kB / 0.9594 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.8542, allocations: 7.797 kB / 0.9594 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.8543, allocations: 6.656 kB / 0.9594 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.8544, allocations: 42.16 kB / 0.9594 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.8544, allocations: 7.969 kB / 0.9594 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.8546, allocations: 32.95 kB / 0.9595 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.8546, allocations: 16.94 kB / 0.9595 GB, free: 3.086 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 0.0001376/0.8548, allocations: 132.7 kB / 0.9596 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.612e-05/0.8548, allocations: 24.86 kB / 0.9596 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.772e-05/0.8549, allocations: 22.77 kB / 0.9597 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.8549, allocations: 5.703 kB / 0.9597 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.8549, allocations: 1.812 kB / 0.9597 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.8549, allocations: 1.844 kB / 0.9597 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007472/0.8557, allocations: 0.5186 MB / 0.9602 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.8557, allocations: 1.375 kB / 0.9602 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.8558, allocations: 25.94 kB / 0.9602 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.8558, allocations: 2.75 kB / 0.9602 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.8558, allocations: 17.36 kB / 0.9602 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.8558, allocations: 1.375 kB / 0.9602 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.8558, allocations: 1.375 kB / 0.9602 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005907/0.8564, allocations: 412.1 kB / 0.9606 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.8565, allocations: 94.36 kB / 0.9607 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.852e-05/0.8565, allocations: 6.75 kB / 0.9607 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.8567, allocations: 19.03 kB / 0.9607 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.8568, allocations: 13.47 kB / 0.9607 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.8568, allocations: 8.078 kB / 0.9607 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001103/0.8569, allocations: 145.4 kB / 0.9609 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8569, allocations: 0 / 0.9609 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003311/0.8573, allocations: 26.94 kB / 0.9609 GB, free: 1.824 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.0007782/0.858, allocations: 1.153 MB / 0.962 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003498/0.8584, allocations: 129.5 kB / 0.9622 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8584, allocations: 1 kB / 0.9622 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.8586, allocations: 57.94 kB / 0.9622 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/0.8591, allocations: 61.67 kB / 0.9623 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.862, allocations: 3.503 MB / 0.9657 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.8625, allocations: 0.727 MB / 0.9664 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001052/0.8626, allocations: 27.62 kB / 0.9664 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.878e-05/0.8627, allocations: 49.45 kB / 0.9665 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of SimCode: time 8.51e-07/0.8627, allocations: 0 / 0.9665 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.8785, allocations: 3.525 MB / 0.9699 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.8788, allocations: 187.1 kB / 0.9701 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.8/2.679, allocations: 3.938 kB / 0.9701 GB, free: 10.68 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