Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008185/0.0008184, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008845/0.0008846, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002326/0.0002327, allocations: 11.98 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002403/0.1061, allocations: 1.649 MB / 360 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.1072, allocations: 0.6393 MB / 360.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1073, allocations: 0 / 360.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.11e-05/0.1074, allocations: 11.86 kB / 360.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1075, allocations: 11.88 kB / 360.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003721/0.1079, allocations: 91.83 kB / 360.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001823/0.1081, allocations: 176 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.1082, allocations: 74.97 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.1084, allocations: 67.7 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1085, allocations: 59.69 kB / 361.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.1086, allocations: 4 kB / 361.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.591e-05/0.1086, allocations: 8 kB / 361.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.474e-05/0.1087, allocations: 27.84 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.915e-05/0.1087, allocations: 49.64 kB / 361.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001883/0.1089, allocations: 163.8 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1089, allocations: 0 / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1089, allocations: 0 / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.1089, allocations: 0 / 361.3 MB, free: 10.73 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007588/0.1097, allocations: 0.5024 MB / 361.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1098, allocations: 8.031 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.584e-05/0.1098, allocations: 58.48 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.11, allocations: 23.81 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.1103, allocations: 232 kB / 362.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.305e-05/0.1104, allocations: 42.02 kB / 362.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/0.1104, allocations: 19.95 kB / 362.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006713/0.1111, allocations: 331.4 kB / 362.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.1111, allocations: 7.984 kB / 362.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.1111, allocations: 8 kB / 362.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.1112, allocations: 4 kB / 362.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004055/0.1116, allocations: 146.7 kB / 362.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006956/0.1123, allocations: 470 kB / 363.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004676/0.1127, allocations: 213.1 kB / 363.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000255/0.113, allocations: 113.7 kB / 363.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.1131, allocations: 8.062 kB / 363.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.1134, allocations: 127.3 kB / 363.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.803e-06/0.1134, allocations: 0 / 363.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007551/0.1141, allocations: 313.3 kB / 363.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.1142, allocations: 89.05 kB / 364 MB, free: 7.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.1143, allocations: 143 kB / 364.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.1144, allocations: 25.7 kB / 364.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.134e-05/0.1144, allocations: 120.4 kB / 364.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.185e-05/0.1145, allocations: 35.55 kB / 364.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.724e-05/0.1145, allocations: 12 kB / 364.3 MB, free: 7.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1146, allocations: 326.8 kB / 364.6 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.1148, allocations: 68.19 kB / 364.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.115, allocations: 147.8 kB / 364.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.1153, allocations: 112 kB / 365 MB, free: 6.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1153, allocations: 4 kB / 365 MB, free: 6.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005408/0.1158, allocations: 294.9 kB / 365.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.09e-05/0.1159, allocations: 36.19 kB / 365.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1159, allocations: 7.953 kB / 365.3 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1159, allocations: 4 kB / 365.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.1161, allocations: 51.91 kB / 365.3 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.1161, allocations: 4 kB / 365.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.1163, allocations: 35.83 kB / 365.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.1163, allocations: 15.98 kB / 365.4 MB, free: 6.316 MB / 302.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.0001383/0.1165, allocations: 137.7 kB / 365.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/0.1167, allocations: 106.3 kB / 365.6 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.572e-05/0.1167, allocations: 20.72 kB / 365.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1168, allocations: 3.953 kB / 365.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1168, allocations: 4 kB / 365.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.1168, allocations: 3.984 kB / 365.7 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007145/0.1175, allocations: 0.5022 MB / 366.2 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1175, allocations: 4 kB / 366.2 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.1177, allocations: 47.89 kB / 366.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.1177, allocations: 3.953 kB / 366.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.1177, allocations: 8 kB / 366.2 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.1177, allocations: 0 / 366.2 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1178, allocations: 4 kB / 366.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005386/0.1183, allocations: 339.3 kB / 366.6 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.025e-05/0.1184, allocations: 93.02 kB / 366.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.1184, allocations: 11.89 kB / 366.7 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.1186, allocations: 31.97 kB / 366.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.403e-05/0.1186, allocations: 11.97 kB / 366.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.1187, allocations: 12 kB / 366.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.477e-05/0.1188, allocations: 111 kB / 366.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1188, allocations: 0 / 366.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.1191, allocations: 43.84 kB / 366.9 MB, free: 4.727 MB / 302.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.001047/0.1201, allocations: 0.9785 MB / 367.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005096/0.1206, allocations: 259 kB / 368.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.1207, allocations: 4 kB / 368.1 MB, free: 3.449 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.1208, allocations: 68.59 kB / 368.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.1213, allocations: 75.95 kB / 368.3 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.123, allocations: 1.051 MB / 369.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.1233, allocations: 0.7286 MB / 370 MB, free: 1.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.836e-05/0.1234, allocations: 17.42 kB / 370.1 MB, free: 1.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.943e-05/0.1235, allocations: 55.47 kB / 370.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1235, allocations: 0 / 370.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2063/0.3298, allocations: 3.213 MB / 373.3 MB, free: 19.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.33, allocations: 208.3 kB / 373.5 MB, free: 19.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.144, allocations: 0 / 373.5 MB, free: 19.24 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat does not exist to compare? outputFormat=mat