Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8358/0.8358, allocations: 141.8 MB / 149.3 MB, free: 9.215 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 176.9 kB / 182.2 MB, free: 9.465 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.76/1.76, allocations: 221.5 MB / 436.4 MB, free: 13.32 MB / 330.7 MB 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: 90.09 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002017/0.002017, allocations: 288.5 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.317e-05, allocations: 4 kB / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5696/0.5696, allocations: 82.78 MB / 0.7575 GB, free: 31.94 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.7318, allocations: 109.8 MB / 0.8647 GB, free: 1.957 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.7322, allocations: 78.72 kB / 0.8648 GB, free: 1.883 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01036/0.7426, allocations: 3.507 MB / 0.8682 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7427, allocations: 0 / 0.8682 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.573e-05/0.7427, allocations: 4 kB / 0.8682 GB, free: 14.37 MB / 0.5417 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.0007361/0.7434, allocations: 446.6 kB / 0.8687 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.7435, allocations: 12.03 kB / 0.8687 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.677e-05/0.7436, allocations: 15.81 kB / 0.8687 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.744, allocations: 226.6 kB / 0.8689 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.744, allocations: 7.953 kB / 0.8689 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.744, allocations: 8.875 kB / 0.8689 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001326/0.7442, allocations: 36 kB / 0.869 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.7444, allocations: 120.5 kB / 0.8691 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.7445, allocations: 4 kB / 0.8691 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.7445, allocations: 0 / 0.8691 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.7445, allocations: 3.984 kB / 0.8691 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.7457, allocations: 0.7165 MB / 0.8698 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 8.668e-05/0.7458, allocations: 38.62 kB / 0.8698 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.32e-05/0.7459, allocations: 20.81 kB / 0.8698 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.7459, allocations: 11.98 kB / 0.8698 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.7461, allocations: 104.3 kB / 0.8699 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 2.745e-06/0.7461, allocations: 0 / 0.8699 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0003018/0.7464, allocations: 97.42 kB / 0.87 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.7466, allocations: 132.5 kB / 0.8702 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.7468, allocations: 169.5 kB / 0.8703 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.7468, allocations: 25.7 kB / 0.8704 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.7469, allocations: 131.9 kB / 0.8705 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.097e-05/0.747, allocations: 35.55 kB / 0.8705 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-06/0.747, allocations: 0 / 0.8705 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.7472, allocations: 326.8 kB / 0.8708 GB, free: 11.46 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.684e-05/0.7473, allocations: 20.38 kB / 0.8708 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.7474, allocations: 129 kB / 0.871 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.789e-05/0.7475, allocations: 39.92 kB / 0.871 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.7475, allocations: 0 / 0.871 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002967/0.7478, allocations: 157.2 kB / 0.8712 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.7478, allocations: 11.95 kB / 0.8712 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.7479, allocations: 4.5 kB / 0.8712 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.7479, allocations: 4 kB / 0.8712 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.7481, allocations: 47.91 kB / 0.8712 GB, free: 11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.7481, allocations: 4 kB / 0.8712 GB, free: 11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.7483, allocations: 23.89 kB / 0.8712 GB, free: 10.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.7483, allocations: 8 kB / 0.8713 GB, free: 10.96 MB / 0.5417 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,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete 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.0001221/0.7484, allocations: 112.9 kB / 0.8714 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001853/0.7486, allocations: 101.4 kB / 0.8715 GB, free: 10.74 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.7486, allocations: 23.89 kB / 0.8715 GB, free: 10.72 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.989e-05/0.7487, allocations: 21.83 kB / 0.8715 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.7487, allocations: 7.938 kB / 0.8715 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.7487, allocations: 0 / 0.8715 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.7488, allocations: 4 kB / 0.8715 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006993/0.7495, allocations: 478.2 kB / 0.872 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.7495, allocations: 4 kB / 0.872 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.7496, allocations: 15.98 kB / 0.872 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.7496, allocations: 4 kB / 0.872 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.7497, allocations: 4 kB / 0.872 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.7497, allocations: 4 kB / 0.872 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.7497, allocations: 0 / 0.872 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003848/0.7501, allocations: 341.4 kB / 0.8723 GB, free: 9.766 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.879e-05/0.7502, allocations: 96.89 kB / 0.8724 GB, free: 9.652 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.7502, allocations: 4 kB / 0.8724 GB, free: 9.648 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.7504, allocations: 23.98 kB / 0.8724 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.853e-05/0.7505, allocations: 11.94 kB / 0.8725 GB, free: 9.613 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.7505, allocations: 7.938 kB / 0.8725 GB, free: 9.605 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001174/0.7506, allocations: 132.4 kB / 0.8726 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7506, allocations: 0 / 0.8726 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003417/0.751, allocations: 24 kB / 0.8726 GB, free: 9.453 MB / 0.5417 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,intWitRes1.trigger,$whenCondition2) * Number of discrete 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.0009626/0.7519, allocations: 1.089 MB / 0.8737 GB, free: 8.32 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001943/0.7521, allocations: 75.81 kB / 0.8737 GB, free: 8.246 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.7521, allocations: 0 / 0.8737 GB, free: 8.246 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.7522, allocations: 31.94 kB / 0.8738 GB, free: 8.215 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.7527, allocations: 56.53 kB / 0.8738 GB, free: 8.164 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008443/0.7536, allocations: 309.5 kB / 0.8741 GB, free: 7.812 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004257/0.754, allocations: 0.7241 MB / 0.8748 GB, free: 7.062 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000108/0.7542, allocations: 17.33 kB / 0.8748 GB, free: 7.047 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.09e-05/0.7543, allocations: 51.64 kB / 0.8749 GB, free: 6.996 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/0.7543, allocations: 0 / 0.8749 GB, free: 6.996 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04003/0.7943, allocations: 3.025 MB / 0.8779 GB, free: 4.016 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003131/0.7947, allocations: 151.4 kB / 0.878 GB, free: 3.824 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.761, allocations: 3.938 kB / 0.878 GB, free: 3.82 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)