Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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) 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009303/0.0009304, allocations: 96.59 kB / 17 MB, free: 6.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0015/0.0015, allocations: 190.2 kB / 17.9 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.591/1.591, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003309, allocations: 4 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1543, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003056/0.1574, allocations: 1.599 MB / 359.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002343/0.1598, allocations: 1.236 MB / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.1599, allocations: 0 / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003252/0.1603, allocations: 63.73 kB / 361.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003507/0.1606, allocations: 103.6 kB / 361.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007153/0.1614, allocations: 227 kB / 361.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.1616, allocations: 163.5 kB / 361.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.1618, allocations: 37.64 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.1619, allocations: 63.64 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.162, allocations: 75.67 kB / 361.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.006e-05/0.1621, allocations: 4 kB / 361.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.1622, allocations: 51.92 kB / 361.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.052e-05/0.1623, allocations: 51.75 kB / 362 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.124e-05/0.1624, allocations: 57.58 kB / 362 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.1626, allocations: 183.9 kB / 362.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1626, allocations: 0 / 362.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.1626, allocations: 0 / 362.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1626, allocations: 3.938 kB / 362.2 MB, free: 9.844 MB / 302.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.0008147/0.1635, allocations: 0.5182 MB / 362.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.1635, allocations: 8.031 kB / 362.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.393e-05/0.1636, allocations: 46.48 kB / 362.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.142e-05/0.1637, allocations: 23.72 kB / 362.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.1641, allocations: 278.4 kB / 363.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.1641, allocations: 7.984 kB / 363.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.1642, allocations: 11.95 kB / 363.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/0.1645, allocations: 176.4 kB / 363.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.1646, allocations: 3.938 kB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.1646, allocations: 11.98 kB / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.279e-06/0.1646, allocations: 0 / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.1647, allocations: 35.98 kB / 363.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.1653, allocations: 403.2 kB / 363.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.1655, allocations: 142.5 kB / 363.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.1657, allocations: 59.36 kB / 363.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.1657, allocations: 0 / 363.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.1659, allocations: 87.38 kB / 364 MB, free: 7.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.452e-06/0.1659, allocations: 0 / 364 MB, free: 7.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003945/0.1663, allocations: 165.2 kB / 364.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.1664, allocations: 192.2 kB / 364.3 MB, free: 7.406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003747/0.1668, allocations: 347 kB / 364.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.1668, allocations: 29.64 kB / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.096e-05/0.1669, allocations: 136.3 kB / 364.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.167, allocations: 15.84 kB / 364.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-06/0.167, allocations: 4 kB / 364.9 MB, free: 6.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1671, allocations: 334.8 kB / 365.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.067e-05/0.1672, allocations: 27.98 kB / 365.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.1673, allocations: 100.6 kB / 365.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.1675, allocations: 35.94 kB / 365.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1675, allocations: 0 / 365.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003547/0.1679, allocations: 137.2 kB / 365.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1679, allocations: 8 kB / 365.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1679, allocations: 0 / 365.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1679, allocations: 4 kB / 365.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.168, allocations: 24.11 kB / 365.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.475e-06/0.1681, allocations: 12.25 kB / 365.5 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.833e-05/0.1682, allocations: 11.91 kB / 365.5 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.1682, allocations: 8 kB / 365.5 MB, free: 6.125 MB / 302.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.0001534/0.1683, allocations: 161.8 kB / 365.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-05/0.1684, allocations: 77.34 kB / 365.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.215e-05/0.1685, allocations: 29.73 kB / 365.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1685, allocations: 12.03 kB / 365.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1685, allocations: 0 / 365.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1685, allocations: 0 / 365.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.1688, allocations: 257.5 kB / 366.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1688, allocations: 0 / 366.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.284e-05/0.1689, allocations: 15.98 kB / 366.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.1689, allocations: 4 kB / 366.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.1689, allocations: 48 / 366.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.1689, allocations: 4 kB / 366.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1689, allocations: 3.984 kB / 366.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.1692, allocations: 187.3 kB / 366.3 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.1693, allocations: 124.8 kB / 366.4 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.1694, allocations: 7.984 kB / 366.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.807e-05/0.1695, allocations: 4 kB / 366.4 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/0.1695, allocations: 7.984 kB / 366.4 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.1695, allocations: 12 kB / 366.4 MB, free: 5.121 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002367/0.1698, allocations: 249.9 kB / 366.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1698, allocations: 0 / 366.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002761/0.1701, allocations: 35.91 kB / 366.7 MB, free: 4.844 MB / 302.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.00138/0.1715, allocations: 1.047 MB / 367.8 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002464/0.1717, allocations: 87.77 kB / 367.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1717, allocations: 0 / 367.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.52e-05/0.1718, allocations: 28.36 kB / 367.9 MB, free: 3.793 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.1723, allocations: 77.86 kB / 368 MB, free: 3.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.1743, allocations: 1.257 MB / 369.2 MB, free: 2.387 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.1747, allocations: 0.7518 MB / 370 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000123/0.1748, allocations: 25.53 kB / 370 MB, free: 1.586 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1749, allocations: 67.41 kB / 370.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1749, allocations: 4 kB / 370.1 MB, free: 1.516 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2179/0.3928, allocations: 5.029 MB / 375.1 MB, free: 18.72 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.3931, allocations: 242.1 kB / 375.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.195/2.588, allocations: 0 / 375.3 MB, free: 18.48 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat