Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",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.0008078/0.0008079, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.00096/0.0009601, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.34/1.34, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000229/0.000229, allocations: 12.23 kB / 300.9 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1177, allocations: 50.42 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00266/0.1204, allocations: 1.624 MB / 353 MB, free: 9.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.1216, allocations: 0.5886 MB / 353.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.1218, allocations: 0 / 353.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.832e-05/0.1218, allocations: 19.84 kB / 353.6 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.122, allocations: 15.86 kB / 353.6 MB, free: 9.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004152/0.1224, allocations: 83.84 kB / 353.7 MB, free: 9.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002267/0.1226, allocations: 180 kB / 353.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.1228, allocations: 70.86 kB / 353.9 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.123, allocations: 63.69 kB / 354 MB, free: 8.965 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.1231, allocations: 63.69 kB / 354 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.92e-05/0.1232, allocations: 8 kB / 354 MB, free: 8.895 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.1232, allocations: 8 kB / 354.1 MB, free: 8.887 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.558e-05/0.1233, allocations: 23.84 kB / 354.1 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.092e-05/0.1233, allocations: 49.64 kB / 354.1 MB, free: 8.809 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.1235, allocations: 147.6 kB / 354.3 MB, free: 8.664 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1235, allocations: 0 / 354.3 MB, free: 8.664 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1235, allocations: 4 kB / 354.3 MB, free: 8.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.1235, allocations: 0 / 354.3 MB, free: 8.66 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008456/0.1244, allocations: 0.5009 MB / 354.8 MB, free: 8.098 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.1245, allocations: 8.031 kB / 354.8 MB, free: 8.09 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.956e-05/0.1245, allocations: 54.48 kB / 354.8 MB, free: 8.027 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.086e-05/0.1246, allocations: 23.67 kB / 354.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.1249, allocations: 232.8 kB / 355.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-05/0.1249, allocations: 38.03 kB / 355.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.125, allocations: 20 kB / 355.1 MB, free: 7.676 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007256/0.1257, allocations: 341.2 kB / 355.5 MB, free: 7.328 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1257, allocations: 4 kB / 355.5 MB, free: 7.324 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.1258, allocations: 7.953 kB / 355.5 MB, free: 7.316 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1258, allocations: 4 kB / 355.5 MB, free: 7.312 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.1262, allocations: 152.3 kB / 355.6 MB, free: 7.164 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007283/0.1269, allocations: 466 kB / 356.1 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004844/0.1274, allocations: 217.1 kB / 356.3 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000241/0.1277, allocations: 109.7 kB / 356.4 MB, free: 6.312 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.394e-05/0.1277, allocations: 4 kB / 356.4 MB, free: 6.309 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003647/0.1281, allocations: 131.2 kB / 356.5 MB, free: 6.168 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.1281, allocations: 192 / 356.5 MB, free: 6.168 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007676/0.1289, allocations: 309.2 kB / 356.9 MB, free: 5.859 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/0.129, allocations: 89.05 kB / 356.9 MB, free: 5.754 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.1291, allocations: 149 kB / 357.1 MB, free: 5.598 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.875e-05/0.1292, allocations: 29.7 kB / 357.1 MB, free: 5.562 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.149e-05/0.1293, allocations: 120.4 kB / 357.2 MB, free: 5.441 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.1294, allocations: 39.61 kB / 357.3 MB, free: 5.402 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.144e-05/0.1294, allocations: 8 kB / 357.3 MB, free: 5.395 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1295, allocations: 326.8 kB / 357.6 MB, free: 5.066 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.1297, allocations: 68.19 kB / 357.7 MB, free: 5 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.13, allocations: 154.6 kB / 357.8 MB, free: 4.812 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.1302, allocations: 116.3 kB / 357.9 MB, free: 4.695 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.1302, allocations: 0 / 357.9 MB, free: 4.695 MB / 286.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000558/0.1308, allocations: 287.2 kB / 358.2 MB, free: 4.402 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.828e-05/0.1308, allocations: 33.69 kB / 358.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1308, allocations: 4 kB / 358.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.1309, allocations: 4 kB / 358.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.1311, allocations: 51.91 kB / 358.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1311, allocations: 4 kB / 358.3 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.1313, allocations: 35.83 kB / 358.3 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.1313, allocations: 11.95 kB / 358.3 MB, free: 4.254 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0001599/0.1315, allocations: 153.5 kB / 358.5 MB, free: 4.094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.1316, allocations: 94.38 kB / 358.6 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.745e-05/0.1317, allocations: 24.7 kB / 358.6 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.1317, allocations: 0 / 358.6 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.1318, allocations: 7.938 kB / 358.6 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1318, allocations: 3.938 kB / 358.6 MB, free: 3.957 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007838/0.1326, allocations: 0.4984 MB / 359.1 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.1326, allocations: 4 kB / 359.1 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.1328, allocations: 43.91 kB / 359.2 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1328, allocations: 4 kB / 359.2 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.1328, allocations: 7.984 kB / 359.2 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1328, allocations: 0 / 359.2 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.1328, allocations: 8 kB / 359.2 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005837/0.1334, allocations: 339.9 kB / 359.5 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.1335, allocations: 100.8 kB / 359.6 MB, free: 2.863 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.1335, allocations: 4 kB / 359.6 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.1337, allocations: 27.98 kB / 359.7 MB, free: 2.832 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.1338, allocations: 11.97 kB / 359.7 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.1338, allocations: 15.98 kB / 359.7 MB, free: 2.805 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.618e-05/0.1339, allocations: 110.6 kB / 359.8 MB, free: 2.699 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1339, allocations: 0 / 359.8 MB, free: 2.699 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.1342, allocations: 39.91 kB / 359.8 MB, free: 2.66 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.001303/0.1356, allocations: 0.9857 MB / 360.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005585/0.1361, allocations: 255.1 kB / 361.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1361, allocations: 0 / 361.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.1363, allocations: 72.59 kB / 361.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.1368, allocations: 67.88 kB / 361.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.1387, allocations: 1.056 MB / 362.3 MB, free: 112 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.139, allocations: 0.7247 MB / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.577e-05/0.1391, allocations: 21.41 kB / 363 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.1392, allocations: 55.47 kB / 363.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1392, allocations: 0 / 363.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01537/0.1546, allocations: 3.219 MB / 366.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.1549, allocations: 219.3 kB / 366.5 MB, free: 12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.036, allocations: 0 / 366.5 MB, free: 12 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat does not exist to compare? outputFormat=mat