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.001131/0.001131, allocations: 102.7 kB / 16.27 MB, free: 5.93 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.001199/0.001199, allocations: 190.5 kB / 17.2 MB, free: 5.574 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.379/1.379, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.756/0.756, allocations: 122.9 MB / 413.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002184/0.002184, allocations: 67.89 kB / 0.4912 GB, free: 7.375 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3666, allocations: 77.93 MB / 0.5673 GB, free: 32.65 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.00264/0.3692, allocations: 1.813 MB / 0.5691 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008085/0.3701, allocations: 0.5381 MB / 0.5696 GB, free: 31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.852e-05/0.3702, allocations: 6.188 kB / 0.5696 GB, free: 31 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.3703, allocations: 26.94 kB / 0.5696 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.301e-05/0.3704, allocations: 22.55 kB / 0.5696 GB, free: 30.96 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001863/0.3706, allocations: 69.34 kB / 0.5697 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.3708, allocations: 171.9 kB / 0.5699 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.3709, allocations: 51.97 kB / 0.5699 GB, free: 30.82 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.212e-05/0.371, allocations: 57.44 kB / 0.57 GB, free: 30.79 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.429e-05/0.3711, allocations: 58.47 kB / 0.57 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.3711, allocations: 9.812 kB / 0.57 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.541e-05/0.3712, allocations: 9.938 kB / 0.57 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.417e-05/0.3712, allocations: 30.25 kB / 0.5701 GB, free: 30.74 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.436e-05/0.3713, allocations: 65.25 kB / 0.5701 GB, free: 30.7 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.3715, allocations: 132.2 kB / 0.5703 GB, free: 30.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3715, allocations: 0.9375 kB / 0.5703 GB, free: 30.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3715, allocations: 0 / 0.5703 GB, free: 30.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3715, allocations: 2.656 kB / 0.5703 GB, free: 30.64 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.0006293/0.3722, allocations: 474.1 kB / 0.5707 GB, free: 30.21 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3722, allocations: 9.875 kB / 0.5707 GB, free: 30.21 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.107e-05/0.3723, allocations: 46.3 kB / 0.5708 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.175e-05/0.3723, allocations: 18.09 kB / 0.5708 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.3725, allocations: 233.1 kB / 0.571 GB, free: 29.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.3725, allocations: 11.52 kB / 0.571 GB, free: 29.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.3726, allocations: 16.31 kB / 0.571 GB, free: 29.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.3728, allocations: 147.1 kB / 0.5712 GB, free: 29.81 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3729, allocations: 0 / 0.5712 GB, free: 29.81 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.3729, allocations: 5.766 kB / 0.5712 GB, free: 29.81 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3729, allocations: 4.031 kB / 0.5712 GB, free: 29.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002326/0.3731, allocations: 69.83 kB / 0.5712 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007791/0.3739, allocations: 0.738 MB / 0.572 GB, free: 29.12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.3741, allocations: 54.47 kB / 0.572 GB, free: 29.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.3742, allocations: 31.59 kB / 0.572 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.3743, allocations: 1.312 kB / 0.5721 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000257/0.3745, allocations: 136 kB / 0.5722 GB, free: 28.97 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.3745, allocations: 0 / 0.5722 GB, free: 28.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.000479/0.375, allocations: 163.5 kB / 0.5723 GB, free: 28.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.895e-05/0.3751, allocations: 136.7 kB / 0.5725 GB, free: 28.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001953/0.3753, allocations: 208.9 kB / 0.5727 GB, free: 28.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.3753, allocations: 27.78 kB / 0.5727 GB, free: 28.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.466e-05/0.3754, allocations: 133.8 kB / 0.5728 GB, free: 28.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.3754, allocations: 32.09 kB / 0.5729 GB, free: 28.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.099e-05/0.3755, allocations: 39.55 kB / 0.5729 GB, free: 28.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.089e-05/0.3756, allocations: 329.3 kB / 0.5732 GB, free: 28.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.3757, allocations: 38.73 kB / 0.5732 GB, free: 28.07 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.3759, allocations: 149.2 kB / 0.5734 GB, free: 27.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.3762, allocations: 207.9 kB / 0.5736 GB, free: 27.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3762, allocations: 1.438 kB / 0.5736 GB, free: 27.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004066/0.3766, allocations: 206.4 kB / 0.5738 GB, free: 27.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.3767, allocations: 7.406 kB / 0.5738 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.3767, allocations: 3.5 kB / 0.5738 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.3767, allocations: 5.406 kB / 0.5738 GB, free: 27.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.3768, allocations: 35.69 kB / 0.5738 GB, free: 27.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.3769, allocations: 5.172 kB / 0.5738 GB, free: 27.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001462/0.377, allocations: 33.03 kB / 0.5739 GB, free: 27.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.377, allocations: 8.594 kB / 0.5739 GB, free: 27.63 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 9.344e-05/0.3771, allocations: 136.1 kB / 0.574 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.954e-05/0.3772, allocations: 16.56 kB / 0.574 GB, free: 27.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.588e-05/0.3772, allocations: 22.64 kB / 0.574 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3772, allocations: 4.469 kB / 0.574 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3772, allocations: 1.25 kB / 0.574 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3773, allocations: 1.188 kB / 0.574 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007358/0.378, allocations: 0.5168 MB / 0.5746 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.378, allocations: 1.062 kB / 0.5746 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.3781, allocations: 23.97 kB / 0.5746 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.3781, allocations: 2.328 kB / 0.5746 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.3782, allocations: 6.016 kB / 0.5746 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.3782, allocations: 11.34 kB / 0.5746 GB, free: 27.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3782, allocations: 2.344 kB / 0.5746 GB, free: 27.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004937/0.3787, allocations: 355.2 kB / 0.5749 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.175e-05/0.3788, allocations: 99.75 kB / 0.575 GB, free: 26.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.3788, allocations: 3.547 kB / 0.575 GB, free: 26.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.379, allocations: 17.59 kB / 0.575 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.3791, allocations: 14.02 kB / 0.5751 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.3791, allocations: 5.359 kB / 0.5751 GB, free: 26.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.3792, allocations: 142.3 kB / 0.5752 GB, free: 26.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3792, allocations: 1.312 kB / 0.5752 GB, free: 26.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003636/0.3796, allocations: 26.52 kB / 0.5752 GB, free: 26.55 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.0006493/0.3803, allocations: 0.8988 MB / 0.5761 GB, free: 25.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.3806, allocations: 122 kB / 0.5762 GB, free: 25.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3806, allocations: 0.75 kB / 0.5762 GB, free: 25.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.3807, allocations: 50.39 kB / 0.5763 GB, free: 25.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000563/0.3813, allocations: 64.94 kB / 0.5763 GB, free: 25.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.3839, allocations: 2.27 MB / 0.5786 GB, free: 23.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001767/0.3841, allocations: 0.7239 MB / 0.5793 GB, free: 23.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.66e-05/0.3842, allocations: 19.56 kB / 0.5793 GB, free: 23.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.664e-05/0.3842, allocations: 49.88 kB / 0.5793 GB, free: 23.09 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3842, allocations: 0 / 0.5793 GB, free: 23.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/0.4127, allocations: 3.958 MB / 0.5832 GB, free: 21.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.515/7.928, allocations: 7.906 kB / 0.5832 GB, free: 21.88 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)