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.8562/0.8562, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 188.6 kB / 187.3 MB, free: 11.86 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.795/1.795, allocations: 221.3 MB / 441.4 MB, free: 4.59 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.001048/0.001049, allocations: 95.73 kB / 0.5124 GB, free: 24.28 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002423/0.002423, allocations: 274 kB / 0.5939 GB, free: 7.938 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 6.132e-05/6.132e-05, allocations: 4 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5987/0.5988, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1445/0.7433, allocations: 110.5 MB / 0.8723 GB, free: 14 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003627/0.7438, allocations: 67.97 kB / 0.8723 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.009878/0.7537, allocations: 3.537 MB / 0.8758 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.734e-06/0.7538, allocations: 0 / 0.8758 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.656e-05/0.7538, allocations: 7.938 kB / 0.8758 GB, free: 10.4 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.0006719/0.7545, allocations: 438.6 kB / 0.8762 GB, free: 9.926 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/0.7546, allocations: 12.03 kB / 0.8762 GB, free: 9.914 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.56e-05/0.7546, allocations: 46.55 kB / 0.8763 GB, free: 9.859 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.556e-05/0.7547, allocations: 16.69 kB / 0.8763 GB, free: 9.844 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.7551, allocations: 230.6 kB / 0.8765 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.7551, allocations: 11.95 kB / 0.8765 GB, free: 9.566 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.29e-05/0.7552, allocations: 12 kB / 0.8765 GB, free: 9.555 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003469/0.7555, allocations: 139.3 kB / 0.8767 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.7556, allocations: 0 / 0.8767 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.7556, allocations: 0 / 0.8767 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.7556, allocations: 4 kB / 0.8767 GB, free: 9.395 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.7557, allocations: 47.88 kB / 0.8767 GB, free: 9.348 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.7571, allocations: 0.7668 MB / 0.8775 GB, free: 8.516 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 9.829e-05/0.7572, allocations: 34.58 kB / 0.8775 GB, free: 8.473 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.158e-05/0.7573, allocations: 16.86 kB / 0.8775 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.7573, allocations: 4 kB / 0.8775 GB, free: 8.449 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002407/0.7576, allocations: 122.6 kB / 0.8776 GB, free: 8.305 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.7576, allocations: 0 / 0.8776 GB, free: 8.305 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.000305/0.7579, allocations: 101.4 kB / 0.8777 GB, free: 8.199 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.758, allocations: 136.5 kB / 0.8779 GB, free: 8.035 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.7582, allocations: 170 kB / 0.878 GB, free: 7.863 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.7583, allocations: 37.77 kB / 0.8781 GB, free: 7.82 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.7584, allocations: 127.8 kB / 0.8782 GB, free: 7.691 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.832e-05/0.7585, allocations: 39.69 kB / 0.8782 GB, free: 7.652 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.817e-06/0.7585, allocations: 4 kB / 0.8782 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000239/0.7587, allocations: 330.8 kB / 0.8785 GB, free: 7.316 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.353e-05/0.7588, allocations: 24.38 kB / 0.8786 GB, free: 7.289 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.759, allocations: 135.3 kB / 0.8787 GB, free: 7.105 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.716e-05/0.7591, allocations: 43.92 kB / 0.8787 GB, free: 7.062 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.7591, allocations: 4 kB / 0.8787 GB, free: 7.059 MB / 0.5417 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003157/0.7594, allocations: 185 kB / 0.8789 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.7594, allocations: 9.75 kB / 0.8789 GB, free: 6.863 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.7594, allocations: 4.062 kB / 0.8789 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.7595, allocations: 12 kB / 0.8789 GB, free: 6.848 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.7596, allocations: 35.92 kB / 0.879 GB, free: 6.812 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.7597, allocations: 4 kB / 0.879 GB, free: 6.809 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.7598, allocations: 23.98 kB / 0.879 GB, free: 6.785 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.7598, allocations: 8 kB / 0.879 GB, free: 6.777 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.0001479/0.76, allocations: 139 kB / 0.8791 GB, free: 6.637 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.76, allocations: 15.81 kB / 0.8792 GB, free: 6.621 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.301e-05/0.7601, allocations: 25.52 kB / 0.8792 GB, free: 6.602 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.7601, allocations: 0 / 0.8792 GB, free: 6.602 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.7601, allocations: 7.938 kB / 0.8792 GB, free: 6.594 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.7601, allocations: 0 / 0.8792 GB, free: 6.594 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006541/0.7608, allocations: 0.4898 MB / 0.8797 GB, free: 6.047 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.7608, allocations: 0 / 0.8797 GB, free: 6.047 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.7609, allocations: 23.92 kB / 0.8797 GB, free: 6.023 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.7609, allocations: 0 / 0.8797 GB, free: 6.023 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.761, allocations: 11.98 kB / 0.8797 GB, free: 6.012 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.761, allocations: 0 / 0.8797 GB, free: 6.012 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.761, allocations: 4 kB / 0.8797 GB, free: 6.008 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003787/0.7614, allocations: 357.3 kB / 0.8801 GB, free: 5.617 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.339e-05/0.7615, allocations: 92.86 kB / 0.8801 GB, free: 5.508 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.7615, allocations: 15.89 kB / 0.8802 GB, free: 5.492 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.7617, allocations: 20.02 kB / 0.8802 GB, free: 5.473 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.7617, allocations: 11.98 kB / 0.8802 GB, free: 5.461 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.7618, allocations: 8 kB / 0.8802 GB, free: 5.453 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001153/0.7619, allocations: 136.4 kB / 0.8803 GB, free: 5.32 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7619, allocations: 0 / 0.8803 GB, free: 5.32 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002977/0.7622, allocations: 31.98 kB / 0.8804 GB, free: 5.289 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.0009331/0.7631, allocations: 1.097 MB / 0.8814 GB, free: 4.152 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002206/0.7634, allocations: 95.92 kB / 0.8815 GB, free: 4.059 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.7634, allocations: 0 / 0.8815 GB, free: 4.059 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 8.782e-05/0.7635, allocations: 39.88 kB / 0.8816 GB, free: 4.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.7639, allocations: 58.97 kB / 0.8816 GB, free: 3.965 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007373/0.7647, allocations: 314 kB / 0.8819 GB, free: 3.609 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.765, allocations: 0.7363 MB / 0.8826 GB, free: 2.848 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.766e-05/0.7651, allocations: 13.55 kB / 0.8826 GB, free: 2.832 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.073e-05/0.7652, allocations: 47.42 kB / 0.8827 GB, free: 2.785 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.7652, allocations: 0 / 0.8827 GB, free: 2.785 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.7826, allocations: 3.544 MB / 0.8861 GB, free: 15.42 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/0.7829, allocations: 163.3 kB / 0.8863 GB, free: 15.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/2.562, allocations: 4 kB / 0.8863 GB, free: 15.2 MB / 0.5573 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)