Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001203/0.001203, allocations: 177.1 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008736/0.0008736, allocations: 98.3 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08013/0.08013, allocations: 12.6 MB / 331.2 MB, free: 10.31 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004511/0.0004511, allocations: 10.98 kB / 392.1 MB, free: 54.82 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1048, allocations: 50.38 MB / 442.5 MB, free: 10.86 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.001883/0.1067, allocations: 1.616 MB / 444.1 MB, free: 9.234 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0008483/0.1076, allocations: 0.6324 MB / 444.8 MB, free: 8.594 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.1077, allocations: 7.875 kB / 444.8 MB, free: 8.586 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 2.861e-05/0.1078, allocations: 7.922 kB / 444.8 MB, free: 8.578 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 9.54e-05/0.1079, allocations: 19.86 kB / 444.8 MB, free: 8.559 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003654/0.1082, allocations: 83.84 kB / 444.9 MB, free: 8.477 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.1084, allocations: 176 kB / 445 MB, free: 8.301 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002575/0.1087, allocations: 78.75 kB / 445.1 MB, free: 8.227 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.1088, allocations: 59.7 kB / 445.2 MB, free: 8.168 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 9.073e-05/0.1089, allocations: 67.67 kB / 445.2 MB, free: 8.102 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.79e-05/0.109, allocations: 4 kB / 445.2 MB, free: 8.098 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.086e-05/0.109, allocations: 4 kB / 445.2 MB, free: 8.094 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/0.109, allocations: 23.86 kB / 445.3 MB, free: 8.07 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 4.095e-05/0.1091, allocations: 49.64 kB / 445.3 MB, free: 8.016 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.1092, allocations: 144.5 kB / 445.5 MB, free: 7.875 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1092, allocations: 0 / 445.5 MB, free: 7.875 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1092, allocations: 4 kB / 445.5 MB, free: 7.871 MB / 282.8 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1092, allocations: 0 / 445.5 MB, free: 7.871 MB / 282.8 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.0007713/0.11, allocations: 0.5022 MB / 446 MB, free: 7.305 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.1101, allocations: 8.031 kB / 446 MB, free: 7.297 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.988e-05/0.1101, allocations: 54.48 kB / 446 MB, free: 7.234 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.31e-05/0.1102, allocations: 23.81 kB / 446.1 MB, free: 7.211 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.1104, allocations: 231.2 kB / 446.3 MB, free: 6.945 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.256e-05/0.1105, allocations: 42.03 kB / 446.3 MB, free: 6.898 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.1105, allocations: 16 kB / 446.3 MB, free: 6.883 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007245/0.1113, allocations: 331.4 kB / 446.7 MB, free: 6.543 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1113, allocations: 4 kB / 446.7 MB, free: 6.539 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.1113, allocations: 4 kB / 446.7 MB, free: 6.535 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.1113, allocations: 4 kB / 446.7 MB, free: 6.531 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004034/0.1118, allocations: 148.4 kB / 446.8 MB, free: 6.387 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006683/0.1124, allocations: 474 kB / 447.3 MB, free: 5.871 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004547/0.1129, allocations: 221 kB / 447.5 MB, free: 5.637 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002322/0.1131, allocations: 109.7 kB / 447.6 MB, free: 5.523 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.1132, allocations: 4 kB / 447.6 MB, free: 5.52 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005079/0.1137, allocations: 123.5 kB / 447.7 MB, free: 5.387 MB / 282.8 MB Notification: Performance of pre-optimization done (n=23): time 2.354e-06/0.1137, allocations: 4 kB / 447.7 MB, free: 5.383 MB / 282.8 MB Notification: Performance of matching and sorting (n=23): time 0.0007874/0.1145, allocations: 305.9 kB / 448 MB, free: 5.078 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.1146, allocations: 89.11 kB / 448.1 MB, free: 4.973 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.1147, allocations: 154.9 kB / 448.3 MB, free: 4.809 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.1147, allocations: 29.7 kB / 448.3 MB, free: 4.773 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.835e-05/0.1148, allocations: 116.4 kB / 448.4 MB, free: 4.656 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.744e-05/0.1148, allocations: 35.67 kB / 448.4 MB, free: 4.621 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.114e-05/0.1148, allocations: 8 kB / 448.5 MB, free: 4.613 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 7.938e-05/0.1149, allocations: 322.8 kB / 448.8 MB, free: 4.289 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.1151, allocations: 76.19 kB / 448.8 MB, free: 4.215 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.1153, allocations: 147.9 kB / 449 MB, free: 4.035 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002197/0.1156, allocations: 117.5 kB / 449.1 MB, free: 3.914 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1156, allocations: 4 kB / 449.1 MB, free: 3.91 MB / 282.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005452/0.1161, allocations: 286.8 kB / 449.4 MB, free: 3.617 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.322e-05/0.1162, allocations: 33.7 kB / 449.4 MB, free: 3.578 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.535e-05/0.1163, allocations: 4 kB / 449.4 MB, free: 3.574 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.876e-05/0.1164, allocations: 4 kB / 449.4 MB, free: 3.57 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002103/0.1166, allocations: 56.25 kB / 449.5 MB, free: 3.516 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.1166, allocations: 4 kB / 449.5 MB, free: 3.512 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.1168, allocations: 31.83 kB / 449.5 MB, free: 3.48 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.1168, allocations: 11.98 kB / 449.5 MB, free: 3.469 MB / 282.8 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.0001071/0.1169, allocations: 141.6 kB / 449.7 MB, free: 3.32 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.1171, allocations: 117.3 kB / 449.8 MB, free: 3.199 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.055e-05/0.1171, allocations: 16.72 kB / 449.8 MB, free: 3.184 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1172, allocations: 4 kB / 449.8 MB, free: 3.18 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1172, allocations: 0 / 449.8 MB, free: 3.18 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1172, allocations: 3.984 kB / 449.8 MB, free: 3.176 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000606/0.1178, allocations: 0.5021 MB / 450.3 MB, free: 2.617 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1178, allocations: 0 / 450.3 MB, free: 2.617 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.118, allocations: 43.95 kB / 450.3 MB, free: 2.574 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.118, allocations: 0 / 450.3 MB, free: 2.574 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.118, allocations: 8 kB / 450.4 MB, free: 2.566 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.118, allocations: 8 kB / 450.4 MB, free: 2.559 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.118, allocations: 0 / 450.4 MB, free: 2.559 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005486/0.1186, allocations: 351.7 kB / 450.7 MB, free: 2.195 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.711e-05/0.1187, allocations: 88.95 kB / 450.8 MB, free: 2.09 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.1187, allocations: 8 kB / 450.8 MB, free: 2.082 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.1189, allocations: 23.97 kB / 450.8 MB, free: 2.059 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.153e-05/0.119, allocations: 15.97 kB / 450.8 MB, free: 2.043 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.119, allocations: 11.98 kB / 450.9 MB, free: 2.031 MB / 282.8 MB Notification: Performance of sorting global known variables: time 5.495e-05/0.1191, allocations: 116.7 kB / 451 MB, free: 1.918 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1191, allocations: 0 / 451 MB, free: 1.918 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002671/0.1193, allocations: 43.89 kB / 451 MB, free: 1.875 MB / 282.8 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.0009477/0.1203, allocations: 0.9706 MB / 452 MB, free: 0.8711 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.000622/0.1209, allocations: 259.7 kB / 452.2 MB, free: 0.6055 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1209, allocations: 128 / 452.2 MB, free: 0.6055 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.1211, allocations: 83.81 kB / 452.3 MB, free: 0.5234 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.1216, allocations: 68.81 kB / 452.4 MB, free: 468 kB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.1236, allocations: 1.071 MB / 453.5 MB, free: 15.31 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.1239, allocations: 0.7247 MB / 454.2 MB, free: 14.55 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 8.925e-05/0.124, allocations: 17.42 kB / 454.2 MB, free: 14.54 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.1241, allocations: 53.59 kB / 454.2 MB, free: 14.48 MB / 298.8 MB Notification: Performance of SimCode: time 4.61e-07/0.1242, allocations: 0 / 454.2 MB, free: 14.48 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.1422, allocations: 3.257 MB / 457.5 MB, free: 11.23 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003232/0.1426, allocations: 218.8 kB / 457.7 MB, free: 10.99 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.774/1.916, allocations: 3.938 kB / 457.7 MB, free: 10.99 MB / 298.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)