Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001539/0.001539, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001954/0.001954, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2375/0.2375, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 79.2 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1504, allocations: 62.44 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.004412/0.1549, allocations: 1.705 MB / 481.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005842/0.1555, allocations: 163.5 kB / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.1556, allocations: 7.938 kB / 482 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.886e-05/0.1558, allocations: 11.86 kB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.846e-05/0.1559, allocations: 11.81 kB / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.1563, allocations: 95.86 kB / 482.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002297/0.1566, allocations: 107.8 kB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.1567, allocations: 33.38 kB / 482.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.297e-05/0.1568, allocations: 43.84 kB / 482.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.838e-05/0.1569, allocations: 39.83 kB / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.157, allocations: 8 kB / 482.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.288e-05/0.157, allocations: 15.94 kB / 482.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.105e-05/0.157, allocations: 15.92 kB / 482.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.287e-05/0.1571, allocations: 47.73 kB / 482.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.1573, allocations: 83.97 kB / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1573, allocations: 0 / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1573, allocations: 0 / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1573, allocations: 8 kB / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007448/0.158, allocations: 447 kB / 482.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.1581, allocations: 8.031 kB / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.148e-05/0.1582, allocations: 38.75 kB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.962e-05/0.1582, allocations: 12.75 kB / 483 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002391/0.1585, allocations: 202.8 kB / 483.2 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.1585, allocations: 8.375 kB / 483.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.616e-05/0.1585, allocations: 4.375 kB / 483.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.1589, allocations: 154.4 kB / 483.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.1589, allocations: 7.938 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.1589, allocations: 0 / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.159, allocations: 7.938 kB / 483.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003983/0.1594, allocations: 107.8 kB / 483.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000843/0.1602, allocations: 0.5399 MB / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000442/0.1607, allocations: 138.5 kB / 484.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.1609, allocations: 56.84 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.1609, allocations: 7.938 kB / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.161, allocations: 34.56 kB / 484.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.894e-06/0.161, allocations: 3.938 kB / 484.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006783/0.1616, allocations: 185.5 kB / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.1617, allocations: 102.8 kB / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.1619, allocations: 144.7 kB / 484.7 MB, free: 388 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.1619, allocations: 25.7 kB / 484.7 MB, free: 356 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.447e-05/0.162, allocations: 116.1 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.162, allocations: 27.64 kB / 484.8 MB, free: 208 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.254e-05/0.1621, allocations: 25.72 kB / 484.9 MB, free: 176 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1622, allocations: 318.8 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.1625, allocations: 55.89 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.1627, allocations: 84.23 kB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.1631, allocations: 118.8 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1631, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004448/0.1635, allocations: 153.4 kB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.1636, allocations: 8 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1636, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.1636, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.1637, allocations: 27.97 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1638, allocations: 4 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001509/0.1639, allocations: 31.91 kB / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.1639, allocations: 8.062 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001052/0.1641, allocations: 117.8 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.1641, allocations: 7.906 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.596e-05/0.1641, allocations: 16.7 kB / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1642, allocations: 3.938 kB / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1642, allocations: 0 / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.892e-06/0.1642, allocations: 3.938 kB / 485.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/0.1644, allocations: 217.4 kB / 486 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1644, allocations: 0 / 486 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.1645, allocations: 23.97 kB / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.1646, allocations: 7.938 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.1646, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1646, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1646, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000447/0.165, allocations: 243.3 kB / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-05/0.1651, allocations: 81.2 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.1651, allocations: 8 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.1653, allocations: 23.91 kB / 486.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.262e-05/0.1653, allocations: 19.86 kB / 486.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.1654, allocations: 4 kB / 486.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.065e-05/0.1654, allocations: 105.5 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1654, allocations: 0 / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002466/0.1657, allocations: 16 kB / 486.5 MB, free: 14.37 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0007394/0.1664, allocations: 0.7708 MB / 487.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004341/0.1669, allocations: 115.8 kB / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1669, allocations: 0 / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.1671, allocations: 68 kB / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003949/0.1675, allocations: 23.5 kB / 487.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.1699, allocations: 1.658 MB / 489.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.1702, allocations: 0.7002 MB / 489.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.343e-05/0.1703, allocations: 12.67 kB / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.78e-05/0.1704, allocations: 27.42 kB / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.1704, allocations: 0 / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.1929, allocations: 2.697 MB / 492.6 MB, free: 8.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.526/7.719, allocations: 5.359 kB / 492.6 MB, free: 8.199 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)