Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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) 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",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.001172/0.001172, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001336/0.001336, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.557/1.557, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003737, allocations: 10.23 kB / 300.8 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1428, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.002809/0.1456, allocations: 1.577 MB / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.1481, allocations: 1.045 MB / 353.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002502/0.1483, allocations: 4 kB / 353.9 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003421/0.1487, allocations: 55.73 kB / 353.9 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002908/0.149, allocations: 79.77 kB / 354 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007715/0.1498, allocations: 220.7 kB / 354.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002314/0.15, allocations: 111.7 kB / 354.3 MB, free: 8.582 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.1502, allocations: 33.48 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.1503, allocations: 63.7 kB / 354.4 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.1504, allocations: 63.69 kB / 354.5 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.1504, allocations: 4 kB / 354.5 MB, free: 8.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001364/0.1506, allocations: 47.89 kB / 354.5 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1507, allocations: 39.84 kB / 354.6 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.645e-05/0.1508, allocations: 57.58 kB / 354.6 MB, free: 8.273 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002461/0.1511, allocations: 175.6 kB / 354.8 MB, free: 8.102 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.1511, allocations: 0 / 354.8 MB, free: 8.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1511, allocations: 4 kB / 354.8 MB, free: 8.098 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1511, allocations: 0 / 354.8 MB, free: 8.098 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008526/0.152, allocations: 0.5 MB / 355.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.075e-05/0.152, allocations: 8.031 kB / 355.3 MB, free: 7.535 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.79e-05/0.1521, allocations: 42.55 kB / 355.3 MB, free: 7.484 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.108e-05/0.1522, allocations: 27.67 kB / 355.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.1526, allocations: 286.3 kB / 355.6 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.1527, allocations: 11.98 kB / 355.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.1527, allocations: 4 kB / 355.7 MB, free: 7.125 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004986/0.1532, allocations: 180.4 kB / 355.8 MB, free: 6.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.1532, allocations: 3.938 kB / 355.8 MB, free: 6.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.1533, allocations: 4 kB / 355.8 MB, free: 6.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1533, allocations: 7.953 kB / 355.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.1534, allocations: 43.91 kB / 355.9 MB, free: 6.859 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007447/0.1542, allocations: 387.2 kB / 356.3 MB, free: 6.422 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.1545, allocations: 146.5 kB / 356.4 MB, free: 6.242 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.1546, allocations: 4 kB / 356.4 MB, free: 6.238 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.1548, allocations: 83.45 kB / 356.5 MB, free: 6.145 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.763e-06/0.1548, allocations: 0 / 356.5 MB, free: 6.145 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004636/0.1553, allocations: 169.2 kB / 356.7 MB, free: 5.973 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.1554, allocations: 188.3 kB / 356.9 MB, free: 5.746 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/0.1559, allocations: 342.5 kB / 357.2 MB, free: 5.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.1559, allocations: 25.7 kB / 357.2 MB, free: 5.367 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.156, allocations: 132.3 kB / 357.3 MB, free: 5.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.1561, allocations: 23.86 kB / 357.4 MB, free: 5.207 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.172e-06/0.1561, allocations: 0 / 357.4 MB, free: 5.207 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1563, allocations: 338.8 kB / 357.7 MB, free: 4.867 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.682e-05/0.1564, allocations: 23.98 kB / 357.7 MB, free: 4.844 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.1565, allocations: 96.58 kB / 357.8 MB, free: 4.719 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.014e-05/0.1566, allocations: 44.11 kB / 357.9 MB, free: 4.676 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1566, allocations: 0 / 357.9 MB, free: 4.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002841/0.1569, allocations: 137.3 kB / 358 MB, free: 4.535 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.1569, allocations: 11.95 kB / 358 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.1569, allocations: 0 / 358 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.157, allocations: 4 kB / 358 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.1571, allocations: 23.92 kB / 358 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1571, allocations: 4 kB / 358 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.902e-05/0.1572, allocations: 12.09 kB / 358 MB, free: 4.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.1573, allocations: 8 kB / 358.1 MB, free: 4.473 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001733/0.1574, allocations: 149.8 kB / 358.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.1575, allocations: 81.34 kB / 358.3 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.763e-05/0.1576, allocations: 33.66 kB / 358.3 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1576, allocations: 0 / 358.3 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1576, allocations: 4.094 kB / 358.3 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.1577, allocations: 7.984 kB / 358.3 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.1579, allocations: 237.6 kB / 358.6 MB, free: 3.906 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.1579, allocations: 4 kB / 358.6 MB, free: 3.902 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.387e-05/0.158, allocations: 19.92 kB / 358.6 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.158, allocations: 0 / 358.6 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.1581, allocations: 4 kB / 358.6 MB, free: 3.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1581, allocations: 3.953 kB / 358.6 MB, free: 3.875 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1581, allocations: 0 / 358.6 MB, free: 3.875 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003455/0.1584, allocations: 228.4 kB / 358.8 MB, free: 3.605 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.1586, allocations: 116.8 kB / 358.9 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.1586, allocations: 4.047 kB / 358.9 MB, free: 3.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1588, allocations: 19.92 kB / 358.9 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/0.1588, allocations: 7.984 kB / 359 MB, free: 3.441 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.1589, allocations: 4.062 kB / 359 MB, free: 3.438 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000255/0.1591, allocations: 245.9 kB / 359.2 MB, free: 3.199 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1591, allocations: 0 / 359.2 MB, free: 3.199 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.1595, allocations: 36 kB / 359.2 MB, free: 3.164 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001658/0.1611, allocations: 1.282 MB / 360.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002419/0.1614, allocations: 83.89 kB / 360.6 MB, free: 1.914 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1614, allocations: 0 / 360.6 MB, free: 1.914 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.31e-05/0.1615, allocations: 31.92 kB / 360.6 MB, free: 1.883 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004272/0.1619, allocations: 73.09 kB / 360.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.1644, allocations: 2.108 MB / 362.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.1648, allocations: 0.7556 MB / 363.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.165, allocations: 25.53 kB / 363.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.1651, allocations: 63.41 kB / 363.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1651, allocations: 0 / 363.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.1907, allocations: 4.94 MB / 368.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003556/0.1911, allocations: 240.5 kB / 368.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.235, allocations: 3.875 kB / 368.8 MB, free: 9.746 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat