Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001611/0.001611, allocations: 171.4 kB / 16.76 MB, free: 4.906 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.534/1.534, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007878/0.0007877, allocations: 89.42 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09544/0.09544, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004115/0.0004115, allocations: 12 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09613, allocations: 50.37 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.002118/0.09831, allocations: 1.627 MB / 444.6 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009059/0.09924, allocations: 0.6207 MB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.09937, allocations: 4 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.119e-05/0.09941, allocations: 15.8 kB / 445.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.09953, allocations: 19.84 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004304/0.09997, allocations: 87.84 kB / 445.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.1002, allocations: 176 kB / 445.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.1004, allocations: 88.3 kB / 445.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.1005, allocations: 59.72 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.1006, allocations: 63.67 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.743e-05/0.1007, allocations: 4 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.412e-05/0.1007, allocations: 8 kB / 445.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.553e-05/0.1008, allocations: 27.84 kB / 445.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.986e-05/0.1009, allocations: 85.36 kB / 445.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.101, allocations: 147.9 kB / 446 MB, free: 13.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1011, allocations: 4 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1011, allocations: 0 / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.1011, allocations: 0 / 446 MB, free: 13.07 MB / 298.7 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.0007738/0.1019, allocations: 0.4984 MB / 446.5 MB, free: 12.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.1019, allocations: 8.031 kB / 446.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.139e-05/0.102, allocations: 28.69 kB / 446.5 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.1022, allocations: 232.5 kB / 446.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.391e-05/0.1023, allocations: 38.59 kB / 446.8 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.1023, allocations: 19.94 kB / 446.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006209/0.103, allocations: 341.3 kB / 447.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.103, allocations: 0 / 447.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.103, allocations: 8 kB / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.103, allocations: 4 kB / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.1034, allocations: 151.8 kB / 447.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005599/0.104, allocations: 477.1 kB / 447.8 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004295/0.1044, allocations: 217.1 kB / 448 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.1047, allocations: 101.7 kB / 448.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.1047, allocations: 7.984 kB / 448.1 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.105, allocations: 127.4 kB / 448.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.105, allocations: 0 / 448.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007124/0.1057, allocations: 310 kB / 448.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.1058, allocations: 89.11 kB / 448.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.699e-05/0.1059, allocations: 146.4 kB / 448.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.1059, allocations: 33.7 kB / 448.8 MB, free: 10.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.106, allocations: 116.4 kB / 448.9 MB, free: 9.914 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.106, allocations: 43.61 kB / 448.9 MB, free: 9.871 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.086e-05/0.106, allocations: 4 kB / 448.9 MB, free: 9.867 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.95e-05/0.1061, allocations: 326.8 kB / 449.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.1063, allocations: 72.19 kB / 449.3 MB, free: 9.469 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.1065, allocations: 151.6 kB / 449.5 MB, free: 9.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.1069, allocations: 247.7 kB / 449.7 MB, free: 9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1069, allocations: 4 kB / 449.7 MB, free: 8.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004731/0.1074, allocations: 290.9 kB / 450 MB, free: 8.699 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.1074, allocations: 29.7 kB / 450 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1074, allocations: 4 kB / 450 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.1075, allocations: 4 kB / 450 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.1076, allocations: 60.16 kB / 450.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.1077, allocations: 7.938 kB / 450.1 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.1078, allocations: 35.81 kB / 450.1 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.1078, allocations: 8 kB / 450.1 MB, free: 8.547 MB / 298.7 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.0001087/0.108, allocations: 137.6 kB / 450.3 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.1081, allocations: 113.5 kB / 450.4 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.653e-05/0.1082, allocations: 20.72 kB / 450.4 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1082, allocations: 7.984 kB / 450.4 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.1082, allocations: 3.938 kB / 450.4 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1082, allocations: 4 kB / 450.4 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000578/0.1088, allocations: 0.4943 MB / 450.9 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1088, allocations: 0 / 450.9 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.109, allocations: 47.89 kB / 451 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.109, allocations: 3.938 kB / 451 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.109, allocations: 8 kB / 451 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.109, allocations: 4 kB / 451 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.109, allocations: 0 / 451 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004568/0.1095, allocations: 343.8 kB / 451.3 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.916e-05/0.1095, allocations: 88.95 kB / 451.4 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.1096, allocations: 11.94 kB / 451.4 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.1097, allocations: 23.97 kB / 451.4 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.1098, allocations: 15.97 kB / 451.4 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1098, allocations: 12 kB / 451.5 MB, free: 7.113 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.126e-05/0.1099, allocations: 116 kB / 451.6 MB, free: 7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1099, allocations: 0 / 451.6 MB, free: 7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002563/0.1102, allocations: 39.91 kB / 451.6 MB, free: 6.961 MB / 298.7 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 9.735e-05/0.1103, allocations: 107.2 kB / 451.7 MB, free: 6.844 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004647/0.1107, allocations: 255.1 kB / 452 MB, free: 6.582 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1107, allocations: 0 / 452 MB, free: 6.582 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.1109, allocations: 68.58 kB / 452 MB, free: 6.516 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.1113, allocations: 75.73 kB / 452.1 MB, free: 6.441 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006155/0.112, allocations: 412.9 kB / 452.5 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001462/0.1121, allocations: 0.7247 MB / 453.2 MB, free: 5.258 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.419e-05/0.1122, allocations: 19.44 kB / 453.3 MB, free: 5.238 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1122, allocations: 0 / 453.3 MB, free: 5.238 MB / 298.7 MB Notification: Performance of Templates: time 0.003108/0.1153, allocations: 2.134 MB / 455.4 MB, free: 3.102 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)