Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_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.001747/0.001747, allocations: 96.81 kB / 15.69 MB, free: 480 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.002132/0.002132, allocations: 174.8 kB / 16.57 MB, free: 6.398 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.922/1.922, allocations: 223.2 MB / 240.5 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.977/0.977, allocations: 113.7 MB / 405.3 MB, free: 4.703 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004998/0.0005003, allocations: 8 kB / 493 MB, free: 8.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2083, allocations: 77.12 MB / 0.5567 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.001649/0.21, allocations: 1.465 MB / 0.5582 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007477/0.2107, allocations: 0.5147 MB / 0.5587 GB, free: 9.703 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.797e-05/0.2108, allocations: 0 / 0.5587 GB, free: 9.703 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.447e-05/0.2109, allocations: 7.875 kB / 0.5587 GB, free: 9.695 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.211, allocations: 31.88 kB / 0.5587 GB, free: 9.664 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.2111, allocations: 55.88 kB / 0.5587 GB, free: 9.609 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.2113, allocations: 115.7 kB / 0.5589 GB, free: 9.496 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.2115, allocations: 41.83 kB / 0.5589 GB, free: 9.453 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.433e-05/0.2115, allocations: 39.8 kB / 0.5589 GB, free: 9.414 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.773e-05/0.2116, allocations: 47.7 kB / 0.559 GB, free: 9.367 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.2116, allocations: 4 kB / 0.559 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.537e-05/0.2117, allocations: 4 kB / 0.559 GB, free: 9.359 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.431e-05/0.2117, allocations: 23.84 kB / 0.559 GB, free: 9.336 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.913e-05/0.2117, allocations: 49.64 kB / 0.5591 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.776e-05/0.2118, allocations: 84.06 kB / 0.5591 GB, free: 9.199 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.2119, allocations: 0 / 0.5591 GB, free: 9.199 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2119, allocations: 0 / 0.5591 GB, free: 9.199 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.2119, allocations: 0 / 0.5591 GB, free: 9.199 MB / 430.1 MB 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.0005959/0.2125, allocations: 466.6 kB / 0.5596 GB, free: 8.695 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.2125, allocations: 8.031 kB / 0.5596 GB, free: 8.688 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.2e-05/0.2126, allocations: 42.55 kB / 0.5596 GB, free: 8.637 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.516e-05/0.2126, allocations: 15.81 kB / 0.5596 GB, free: 8.621 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.2128, allocations: 222.7 kB / 0.5599 GB, free: 8.363 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.2129, allocations: 8 kB / 0.5599 GB, free: 8.355 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.687e-05/0.2129, allocations: 23.84 kB / 0.5599 GB, free: 8.332 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.2132, allocations: 159.2 kB / 0.56 GB, free: 8.156 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2132, allocations: 4 kB / 0.56 GB, free: 8.152 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.2132, allocations: 4 kB / 0.56 GB, free: 8.148 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.2132, allocations: 0 / 0.56 GB, free: 8.148 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002315/0.2135, allocations: 87.88 kB / 0.5601 GB, free: 8.062 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008528/0.2143, allocations: 0.7433 MB / 0.5609 GB, free: 7.254 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.2145, allocations: 46.56 kB / 0.5609 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.2145, allocations: 3.938 kB / 0.5609 GB, free: 7.195 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.2148, allocations: 131.8 kB / 0.561 GB, free: 7.043 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.2148, allocations: 0 / 0.561 GB, free: 7.043 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004426/0.2152, allocations: 181.4 kB / 0.5612 GB, free: 6.859 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.2153, allocations: 132.5 kB / 0.5613 GB, free: 6.699 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.2155, allocations: 207.5 kB / 0.5615 GB, free: 6.488 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.2155, allocations: 25.7 kB / 0.5616 GB, free: 6.457 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.2156, allocations: 135.8 kB / 0.5617 GB, free: 6.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/0.2157, allocations: 31.7 kB / 0.5617 GB, free: 6.289 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-06/0.2157, allocations: 4 kB / 0.5617 GB, free: 6.285 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.2159, allocations: 330.8 kB / 0.562 GB, free: 5.953 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.216, allocations: 44.34 kB / 0.5621 GB, free: 5.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.2161, allocations: 150.1 kB / 0.5622 GB, free: 5.715 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.2164, allocations: 67.91 kB / 0.5623 GB, free: 5.648 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2164, allocations: 0 / 0.5623 GB, free: 5.648 MB / 430.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003628/0.2167, allocations: 213.2 kB / 0.5625 GB, free: 5.434 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.2168, allocations: 8.5 kB / 0.5625 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.2168, allocations: 8 kB / 0.5625 GB, free: 5.418 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2168, allocations: 4 kB / 0.5625 GB, free: 5.414 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.2169, allocations: 47.84 kB / 0.5626 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.2169, allocations: 7.938 kB / 0.5626 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.2171, allocations: 27.83 kB / 0.5626 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.2171, allocations: 16 kB / 0.5626 GB, free: 5.316 MB / 430.1 MB 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 9.767e-05/0.2172, allocations: 135.6 kB / 0.5627 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.2172, allocations: 23.67 kB / 0.5628 GB, free: 5.152 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.2173, allocations: 21.41 kB / 0.5628 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2173, allocations: 0 / 0.5628 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2173, allocations: 0 / 0.5628 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2173, allocations: 7.984 kB / 0.5628 GB, free: 5.121 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006614/0.218, allocations: 0.5172 MB / 0.5633 GB, free: 4.547 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.218, allocations: 7.984 kB / 0.5633 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.2181, allocations: 23.92 kB / 0.5633 GB, free: 4.516 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.2181, allocations: 8 kB / 0.5633 GB, free: 4.508 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.2181, allocations: 0 / 0.5633 GB, free: 4.508 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2181, allocations: 4 kB / 0.5633 GB, free: 4.504 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2182, allocations: 3.938 kB / 0.5633 GB, free: 4.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005613/0.2187, allocations: 415.6 kB / 0.5637 GB, free: 4.055 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.2188, allocations: 92.92 kB / 0.5638 GB, free: 3.945 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.2188, allocations: 12 kB / 0.5638 GB, free: 3.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.219, allocations: 16.02 kB / 0.5638 GB, free: 3.918 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.399e-05/0.219, allocations: 19.94 kB / 0.5639 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.219, allocations: 4 kB / 0.5639 GB, free: 3.895 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.641e-05/0.2191, allocations: 140.4 kB / 0.564 GB, free: 3.758 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2192, allocations: 0 / 0.564 GB, free: 3.758 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003057/0.2195, allocations: 32 kB / 0.564 GB, free: 3.727 MB / 430.1 MB 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.0007773/0.2202, allocations: 1.143 MB / 0.5651 GB, free: 2.539 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002863/0.2205, allocations: 128.6 kB / 0.5653 GB, free: 2.414 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2206, allocations: 0 / 0.5653 GB, free: 2.414 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.2207, allocations: 60.03 kB / 0.5653 GB, free: 2.355 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.2211, allocations: 50.14 kB / 0.5654 GB, free: 2.309 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.2237, allocations: 3.514 MB / 0.5688 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.224, allocations: 0.7284 MB / 0.5695 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.029e-05/0.2241, allocations: 21.53 kB / 0.5695 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.1e-05/0.2241, allocations: 51.42 kB / 0.5696 GB, free: 13.84 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2241, allocations: 0 / 0.5696 GB, free: 13.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/0.3245, allocations: 3.522 MB / 0.573 GB, free: 10.47 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003299/0.3249, allocations: 176.3 kB / 0.5732 GB, free: 10.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.239/3.564, allocations: 0 / 0.5732 GB, free: 10.23 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) Environment - environmentSimulation: