Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007944/0.0007943, allocations: 100.3 kB / 17.01 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009403/0.0009403, allocations: 193.8 kB / 17.91 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002248, allocations: 4 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1451, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002804/0.1479, allocations: 1.572 MB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.1501, allocations: 1.213 MB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.1503, allocations: 4 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003618/0.1507, allocations: 67.73 kB / 361.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.151, allocations: 99.64 kB / 361.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006767/0.1517, allocations: 211.1 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002555/0.1519, allocations: 155.5 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.1521, allocations: 33.47 kB / 361.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.1522, allocations: 59.7 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.1523, allocations: 71.69 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.1523, allocations: 3.984 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.1525, allocations: 47.97 kB / 361.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.874e-05/0.1526, allocations: 43.84 kB / 361.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.022e-05/0.1527, allocations: 53.58 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002511/0.1529, allocations: 179.8 kB / 362.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1529, allocations: 8 kB / 362.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.153, allocations: 0 / 362.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.153, allocations: 0 / 362.1 MB, free: 9.938 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007348/0.1537, allocations: 0.5038 MB / 362.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.1538, allocations: 8.031 kB / 362.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.812e-05/0.1538, allocations: 38.56 kB / 362.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.44e-05/0.1539, allocations: 19.72 kB / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003739/0.1543, allocations: 278.4 kB / 362.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.1543, allocations: 12 kB / 363 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.1543, allocations: 11.89 kB / 363 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.1547, allocations: 155.6 kB / 363.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1547, allocations: 0 / 363.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.1548, allocations: 4 kB / 363.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.1548, allocations: 7.984 kB / 363.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001149/0.1549, allocations: 39.91 kB / 363.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000562/0.1555, allocations: 386.3 kB / 363.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002369/0.1557, allocations: 115.9 kB / 363.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.1558, allocations: 50.55 kB / 363.7 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.1559, allocations: 0 / 363.7 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.1561, allocations: 75.33 kB / 363.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.1561, allocations: 4 kB / 363.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003829/0.1565, allocations: 153.3 kB / 363.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.943e-05/0.1566, allocations: 162.2 kB / 364.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003674/0.157, allocations: 338.9 kB / 364.4 MB, free: 7.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.157, allocations: 25.7 kB / 364.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.1571, allocations: 128.1 kB / 364.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.1571, allocations: 23.86 kB / 364.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-06/0.1571, allocations: 0 / 364.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1573, allocations: 342.7 kB / 364.9 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.223e-05/0.1574, allocations: 19.94 kB / 365 MB, free: 6.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.1575, allocations: 94.78 kB / 365.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.425e-05/0.1576, allocations: 39.92 kB / 365.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1576, allocations: 0 / 365.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002107/0.1578, allocations: 121.3 kB / 365.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1578, allocations: 10.34 kB / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1579, allocations: 0 / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.1579, allocations: 0 / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.158, allocations: 23.92 kB / 365.2 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.158, allocations: 4 kB / 365.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.374e-05/0.1581, allocations: 11.94 kB / 365.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.1581, allocations: 4 kB / 365.3 MB, free: 6.441 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (11): * Single equations (assignments): 11 * 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.0001535/0.1583, allocations: 162.2 kB / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.783e-05/0.1584, allocations: 65.36 kB / 365.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/0.1584, allocations: 25.7 kB / 365.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1584, allocations: 4 kB / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.1584, allocations: 0 / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1584, allocations: 3.984 kB / 365.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.1587, allocations: 241.5 kB / 365.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1587, allocations: 4 kB / 365.8 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.518e-05/0.1588, allocations: 11.98 kB / 365.8 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1588, allocations: 8 kB / 365.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.1588, allocations: 4 kB / 365.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1588, allocations: 0 / 365.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1588, allocations: 0 / 365.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002541/0.1591, allocations: 162.5 kB / 365.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.897e-05/0.1592, allocations: 120.8 kB / 366.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.1592, allocations: 8 kB / 366.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.225e-05/0.1593, allocations: 8 kB / 366.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.1593, allocations: 7.984 kB / 366.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.1594, allocations: 7.938 kB / 366.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.1596, allocations: 249.9 kB / 366.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1596, allocations: 0 / 366.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002719/0.1599, allocations: 35.98 kB / 366.4 MB, free: 5.234 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (9): * Single equations (assignments): 7 * 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.001431/0.1613, allocations: 1.023 MB / 367.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002165/0.1616, allocations: 75.83 kB / 367.5 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1616, allocations: 4.25 kB / 367.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.601e-05/0.1617, allocations: 27.98 kB / 367.5 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003771/0.1621, allocations: 52.73 kB / 367.5 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.1638, allocations: 1.201 MB / 368.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.1642, allocations: 0.74 MB / 369.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.261e-05/0.1643, allocations: 37.45 kB / 369.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.1644, allocations: 55.42 kB / 369.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1644, allocations: 4 kB / 369.6 MB, free: 2.035 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.257/0.4214, allocations: 4.751 MB / 374.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/0.4217, allocations: 242.6 kB / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/2.584, allocations: 3.875 kB / 374.6 MB, free: 18.12 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat