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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009444/0.0009445, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0009941/0.0009941, allocations: 190.7 kB / 16.25 MB, free: 6.621 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.234/1.234, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001863/0.001863, allocations: 278.5 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8259/0.8259, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 92.06 kB / 0.5948 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1192, allocations: 86.98 MB / 0.6797 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002524/0.1218, allocations: 1.885 MB / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007745/0.1226, allocations: 0.5306 MB / 0.6821 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.304e-05/0.1227, allocations: 7.938 kB / 0.6821 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.1228, allocations: 16.52 kB / 0.6821 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/0.1229, allocations: 20.55 kB / 0.6821 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.123, allocations: 64.48 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001787/0.1232, allocations: 165.5 kB / 0.6824 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1234, allocations: 61.86 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.668e-05/0.1234, allocations: 51.78 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.053e-05/0.1235, allocations: 63.62 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.1235, allocations: 12 kB / 0.6825 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.634e-05/0.1235, allocations: 8 kB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.07e-05/0.1236, allocations: 27.86 kB / 0.6826 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.283e-05/0.1236, allocations: 67.55 kB / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.1238, allocations: 119.6 kB / 0.6827 GB, free: 13.86 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1238, allocations: 0 / 0.6827 GB, free: 13.86 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1238, allocations: 0 / 0.6827 GB, free: 13.86 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1238, allocations: 4 kB / 0.6827 GB, free: 13.86 MB / 494.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.0005683/0.1244, allocations: 478.5 kB / 0.6832 GB, free: 13.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.1244, allocations: 19.95 kB / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.751e-05/0.1244, allocations: 38.75 kB / 0.6833 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.1245, allocations: 16.75 kB / 0.6833 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.1247, allocations: 231.9 kB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.888e-06/0.1247, allocations: 4.375 kB / 0.6835 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.1247, allocations: 16.38 kB / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.125, allocations: 147.7 kB / 0.6837 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.125, allocations: 7.938 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.125, allocations: 7.984 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.125, allocations: 4 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.1252, allocations: 71.84 kB / 0.6837 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007191/0.126, allocations: 0.7392 MB / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.1261, allocations: 46.55 kB / 0.6845 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.974e-05/0.1262, allocations: 32.84 kB / 0.6845 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.1262, allocations: 0 / 0.6845 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.1264, allocations: 130.7 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.1264, allocations: 0 / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004023/0.1269, allocations: 165.7 kB / 0.6848 GB, free: 11.51 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.1269, allocations: 136.5 kB / 0.685 GB, free: 11.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.1271, allocations: 206.8 kB / 0.6852 GB, free: 11.13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.1271, allocations: 29.7 kB / 0.6852 GB, free: 11.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.35e-05/0.1272, allocations: 127.9 kB / 0.6853 GB, free: 10.97 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.643e-05/0.1272, allocations: 31.7 kB / 0.6853 GB, free: 10.94 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-05/0.1272, allocations: 45.61 kB / 0.6854 GB, free: 10.89 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.225e-05/0.1273, allocations: 330.8 kB / 0.6857 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.1274, allocations: 39.97 kB / 0.6857 GB, free: 10.52 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.1276, allocations: 159.9 kB / 0.6859 GB, free: 10.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.1279, allocations: 198.3 kB / 0.6861 GB, free: 10.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1279, allocations: 4 kB / 0.6861 GB, free: 10.06 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003379/0.1282, allocations: 205.1 kB / 0.6863 GB, free: 9.855 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1282, allocations: 8 kB / 0.6863 GB, free: 9.848 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1283, allocations: 4 kB / 0.6863 GB, free: 9.844 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.1283, allocations: 4 kB / 0.6863 GB, free: 9.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.1284, allocations: 35.92 kB / 0.6863 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.1284, allocations: 8.453 kB / 0.6863 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.1285, allocations: 27.83 kB / 0.6864 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.1286, allocations: 12 kB / 0.6864 GB, free: 9.758 MB / 494.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.199e-05/0.1287, allocations: 139.9 kB / 0.6865 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.1287, allocations: 15.81 kB / 0.6865 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.1287, allocations: 21.39 kB / 0.6865 GB, free: 9.574 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1287, allocations: 4 kB / 0.6865 GB, free: 9.57 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1287, allocations: 7.875 kB / 0.6865 GB, free: 9.562 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1287, allocations: 4 kB / 0.6866 GB, free: 9.559 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006102/0.1294, allocations: 0.5093 MB / 0.687 GB, free: 8.992 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1294, allocations: 0 / 0.687 GB, free: 8.992 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.1295, allocations: 19.98 kB / 0.6871 GB, free: 8.973 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.1295, allocations: 4 kB / 0.6871 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1295, allocations: 0 / 0.6871 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1295, allocations: 7.938 kB / 0.6871 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.1295, allocations: 7.938 kB / 0.6871 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004041/0.1299, allocations: 352.2 kB / 0.6874 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.13, allocations: 92.95 kB / 0.6875 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.13, allocations: 8 kB / 0.6875 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.1302, allocations: 15.92 kB / 0.6875 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.1302, allocations: 11.98 kB / 0.6875 GB, free: 8.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.1302, allocations: 7.938 kB / 0.6876 GB, free: 8.434 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.569e-05/0.1303, allocations: 136.6 kB / 0.6877 GB, free: 8.301 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1303, allocations: 4 kB / 0.6877 GB, free: 8.297 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.1306, allocations: 35.84 kB / 0.6877 GB, free: 8.262 MB / 494.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.0006121/0.1313, allocations: 0.9061 MB / 0.6886 GB, free: 7.324 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002652/0.1315, allocations: 112.3 kB / 0.6887 GB, free: 7.215 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1315, allocations: 5 kB / 0.6887 GB, free: 7.211 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.1317, allocations: 60.02 kB / 0.6888 GB, free: 7.152 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004803/0.1322, allocations: 69.41 kB / 0.6888 GB, free: 7.086 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.1342, allocations: 2.289 MB / 0.6911 GB, free: 4.605 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.1344, allocations: 0.7242 MB / 0.6918 GB, free: 3.855 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.574e-05/0.1345, allocations: 17.67 kB / 0.6918 GB, free: 3.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.917e-05/0.1345, allocations: 55.42 kB / 0.6919 GB, free: 3.785 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1345, allocations: 4 kB / 0.6919 GB, free: 3.781 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.199/2.334, allocations: 3.803 MB / 0.6956 GB, free: 144 kB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002589/2.334, allocations: 208.4 kB / 0.6958 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.283/5.617, allocations: 0 / 0.6958 GB, free: 15.89 MB / 0.4981 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/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)