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.001434/0.001434, allocations: 98.16 kB / 15.98 MB, free: 6.363 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.001518/0.001518, allocations: 193.2 kB / 16.91 MB, free: 6.199 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.443/1.443, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7379/0.7379, allocations: 115.3 MB / 406.1 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 63.91 kB / 493.2 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5067/0.5082, allocations: 76.17 MB / 0.556 GB, free: 36.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.004133/0.5124, allocations: 1.862 MB / 0.5578 GB, free: 34.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.5137, allocations: 0.5366 MB / 0.5584 GB, free: 34.61 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.5139, allocations: 3.5 kB / 0.5584 GB, free: 34.61 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.5141, allocations: 19.53 kB / 0.5584 GB, free: 34.59 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.921e-05/0.5142, allocations: 15.31 kB / 0.5584 GB, free: 34.58 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002948/0.5145, allocations: 64.47 kB / 0.5585 GB, free: 34.55 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003114/0.5148, allocations: 172.3 kB / 0.5586 GB, free: 34.46 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.515, allocations: 52.59 kB / 0.5587 GB, free: 34.45 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.5152, allocations: 51.7 kB / 0.5587 GB, free: 34.42 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.5153, allocations: 52.55 kB / 0.5588 GB, free: 34.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.5153, allocations: 10.91 kB / 0.5588 GB, free: 34.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.277e-05/0.5154, allocations: 11.06 kB / 0.5588 GB, free: 34.39 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.937e-05/0.5154, allocations: 33.16 kB / 0.5588 GB, free: 34.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.569e-05/0.5156, allocations: 69.56 kB / 0.5589 GB, free: 34.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.5158, allocations: 131.4 kB / 0.559 GB, free: 34.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.5158, allocations: 1.406 kB / 0.559 GB, free: 34.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5158, allocations: 0 / 0.559 GB, free: 34.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.5159, allocations: 1.344 kB / 0.559 GB, free: 34.26 MB / 446.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.0009481/0.5168, allocations: 471.3 kB / 0.5595 GB, free: 33.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.023e-05/0.5169, allocations: 9.156 kB / 0.5595 GB, free: 33.84 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.318e-05/0.517, allocations: 45.45 kB / 0.5595 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.517, allocations: 20.11 kB / 0.5595 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.5174, allocations: 232.2 kB / 0.5598 GB, free: 33.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.5174, allocations: 9.438 kB / 0.5598 GB, free: 33.55 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.5175, allocations: 13.8 kB / 0.5598 GB, free: 33.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004414/0.5179, allocations: 151 kB / 0.5599 GB, free: 33.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.5179, allocations: 3.938 kB / 0.5599 GB, free: 33.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.518, allocations: 4.703 kB / 0.5599 GB, free: 33.44 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.518, allocations: 2.688 kB / 0.5599 GB, free: 33.44 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.5184, allocations: 73.86 kB / 0.56 GB, free: 33.42 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.5195, allocations: 0.7299 MB / 0.5607 GB, free: 32.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.5198, allocations: 49.64 kB / 0.5608 GB, free: 32.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.5199, allocations: 33.53 kB / 0.5608 GB, free: 32.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.224e-05/0.52, allocations: 2.281 kB / 0.5608 GB, free: 32.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004007/0.5204, allocations: 138.5 kB / 0.5609 GB, free: 32.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 3.065e-06/0.5204, allocations: 3.938 kB / 0.5609 GB, free: 32.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007831/0.5212, allocations: 166.1 kB / 0.5611 GB, free: 32.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.5213, allocations: 132.8 kB / 0.5612 GB, free: 32.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003271/0.5217, allocations: 204 kB / 0.5614 GB, free: 32.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.5217, allocations: 33.64 kB / 0.5615 GB, free: 32.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.5219, allocations: 124.9 kB / 0.5616 GB, free: 32.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.323e-05/0.522, allocations: 32.72 kB / 0.5616 GB, free: 32.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.5221, allocations: 44.39 kB / 0.5617 GB, free: 32.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.5222, allocations: 329.6 kB / 0.562 GB, free: 31.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.5224, allocations: 37.55 kB / 0.562 GB, free: 31.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.5228, allocations: 147.9 kB / 0.5621 GB, free: 31.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004956/0.5233, allocations: 204.5 kB / 0.5623 GB, free: 31.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/0.5233, allocations: 1.938 kB / 0.5623 GB, free: 31.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006897/0.524, allocations: 207.4 kB / 0.5625 GB, free: 31.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/0.524, allocations: 7.781 kB / 0.5625 GB, free: 31.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.5241, allocations: 8.031 kB / 0.5626 GB, free: 31.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.968e-05/0.5241, allocations: 4.969 kB / 0.5626 GB, free: 31.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002223/0.5243, allocations: 34.05 kB / 0.5626 GB, free: 31.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.408e-05/0.5244, allocations: 8.219 kB / 0.5626 GB, free: 31.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.5247, allocations: 31.88 kB / 0.5626 GB, free: 31.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.5247, allocations: 7.781 kB / 0.5626 GB, free: 31.27 MB / 446.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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.5249, allocations: 140.1 kB / 0.5628 GB, free: 31.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.356e-05/0.525, allocations: 17.83 kB / 0.5628 GB, free: 31.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.473e-05/0.5251, allocations: 25.05 kB / 0.5628 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.5251, allocations: 3.609 kB / 0.5628 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.5251, allocations: 1.312 kB / 0.5628 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.5251, allocations: 3.422 kB / 0.5628 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.5264, allocations: 0.5118 MB / 0.5633 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.5265, allocations: 1.406 kB / 0.5633 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.5267, allocations: 16.28 kB / 0.5633 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.5267, allocations: 3.094 kB / 0.5633 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.5267, allocations: 8.453 kB / 0.5633 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.5267, allocations: 9.859 kB / 0.5634 GB, free: 30.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.5267, allocations: 6.219 kB / 0.5634 GB, free: 30.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007447/0.5275, allocations: 353 kB / 0.5637 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.95e-05/0.5276, allocations: 94.73 kB / 0.5638 GB, free: 30.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.308e-05/0.5276, allocations: 3.062 kB / 0.5638 GB, free: 30.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/0.5279, allocations: 19.94 kB / 0.5638 GB, free: 30.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.868e-05/0.528, allocations: 14.38 kB / 0.5638 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.5281, allocations: 9.906 kB / 0.5638 GB, free: 30.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.5283, allocations: 142.3 kB / 0.564 GB, free: 30.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5283, allocations: 0 / 0.564 GB, free: 30.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006699/0.529, allocations: 34.89 kB / 0.564 GB, free: 30.18 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001263/0.5303, allocations: 0.8922 MB / 0.5649 GB, free: 29.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000667/0.5309, allocations: 118.6 kB / 0.565 GB, free: 29.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.531, allocations: 2.219 kB / 0.565 GB, free: 29.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.5312, allocations: 48.8 kB / 0.565 GB, free: 29.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009609/0.5322, allocations: 65.36 kB / 0.5651 GB, free: 29.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.536, allocations: 2.302 MB / 0.5673 GB, free: 27.44 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.5364, allocations: 0.7264 MB / 0.5681 GB, free: 26.74 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.5366, allocations: 19.84 kB / 0.5681 GB, free: 26.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.5368, allocations: 49.7 kB / 0.5681 GB, free: 26.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5368, allocations: 0 / 0.5681 GB, free: 26.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05488/0.5917, allocations: 3.792 MB / 0.5718 GB, free: 26.32 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/0.5919, allocations: 204.1 kB / 0.572 GB, free: 26.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.861/2.453, allocations: 0 / 0.572 GB, free: 26.07 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/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)