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/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 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 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 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: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 106.7 kB / 16.45 MB, free: 6.453 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.002055/0.002056, allocations: 189.4 kB / 17.38 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.1 MB / 223.3 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08253/0.08253, allocations: 12.6 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 80.42 kB / 394.1 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1049, allocations: 49.41 MB / 443.6 MB, free: 488 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.003396/0.1083, allocations: 1.966 MB / 445.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.1095, allocations: 0.6748 MB / 446.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.1096, allocations: 0 / 446.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.1098, allocations: 19.73 kB / 446.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.1099, allocations: 27.78 kB / 446.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004458/0.1103, allocations: 107.7 kB / 446.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002619/0.1106, allocations: 208 kB / 446.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1108, allocations: 104 kB / 446.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.111, allocations: 95.67 kB / 446.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.1111, allocations: 87.59 kB / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.1112, allocations: 20 kB / 446.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.983e-05/0.1112, allocations: 20 kB / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.237e-05/0.1113, allocations: 39.84 kB / 446.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.1114, allocations: 95.52 kB / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002923/0.1117, allocations: 207.1 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1117, allocations: 3.938 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1117, allocations: 0 / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1117, allocations: 0 / 447.2 MB, free: 12.8 MB / 334.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.0009202/0.1127, allocations: 0.5257 MB / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.532e-05/0.1127, allocations: 12.03 kB / 447.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.1128, allocations: 16.84 kB / 447.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.1132, allocations: 240.6 kB / 448 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.154e-05/0.1132, allocations: 38.59 kB / 448 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.171e-05/0.1133, allocations: 23.94 kB / 448.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007537/0.114, allocations: 327 kB / 448.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1141, allocations: 0 / 448.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.343e-05/0.1141, allocations: 8 kB / 448.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1141, allocations: 4 kB / 448.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004049/0.1145, allocations: 131.8 kB / 448.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006642/0.1152, allocations: 469.2 kB / 449 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005042/0.1157, allocations: 205.1 kB / 449.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002775/0.116, allocations: 105.7 kB / 449.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.116, allocations: 7.984 kB / 449.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.1163, allocations: 119.3 kB / 449.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.714e-06/0.1163, allocations: 0 / 449.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008064/0.1171, allocations: 285.5 kB / 449.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.1172, allocations: 89.11 kB / 449.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.1174, allocations: 158.2 kB / 449.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.1174, allocations: 33.64 kB / 450 MB, free: 9.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.406e-05/0.1175, allocations: 112.5 kB / 450.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.145e-05/0.1175, allocations: 39.86 kB / 450.1 MB, free: 9.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.192e-05/0.1176, allocations: 49.7 kB / 450.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1178, allocations: 330.8 kB / 450.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.118, allocations: 60.19 kB / 450.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.1182, allocations: 142.7 kB / 450.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004178/0.1187, allocations: 231.7 kB / 450.9 MB, free: 8.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1187, allocations: 4 kB / 450.9 MB, free: 8.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005502/0.1192, allocations: 267 kB / 451.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/0.1193, allocations: 37.69 kB / 451.2 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1193, allocations: 352 / 451.2 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.1193, allocations: 8 kB / 451.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.1195, allocations: 51.84 kB / 451.3 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.1195, allocations: 7.938 kB / 451.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.1197, allocations: 27.88 kB / 451.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.1198, allocations: 12 kB / 451.3 MB, free: 8.32 MB / 334.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,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.1199, allocations: 141.8 kB / 451.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.1201, allocations: 101.5 kB / 451.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.076e-05/0.1202, allocations: 24.72 kB / 451.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.1202, allocations: 4 kB / 451.6 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1202, allocations: 3.938 kB / 451.6 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1202, allocations: 3.984 kB / 451.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007492/0.121, allocations: 490.2 kB / 452.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.121, allocations: 0 / 452.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.1212, allocations: 43.91 kB / 452.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.1212, allocations: 7.922 kB / 452.1 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.1212, allocations: 11.94 kB / 452.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.1212, allocations: 0 / 452.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1212, allocations: 0 / 452.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005878/0.1218, allocations: 327.2 kB / 452.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.723e-05/0.1219, allocations: 92.95 kB / 452.5 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.1219, allocations: 11.94 kB / 452.5 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.1221, allocations: 19.97 kB / 452.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/0.1222, allocations: 19.92 kB / 452.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.1222, allocations: 8 kB / 452.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.172e-05/0.1223, allocations: 115.9 kB / 452.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1223, allocations: 0 / 452.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000288/0.1226, allocations: 39.95 kB / 452.7 MB, free: 6.777 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.866e-05/0.1227, allocations: 103.2 kB / 452.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005113/0.1232, allocations: 243.1 kB / 453.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1232, allocations: 0.6875 kB / 453.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.1234, allocations: 63.91 kB / 453.1 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.1238, allocations: 76.34 kB / 453.2 MB, free: 6.281 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006791/0.1245, allocations: 333 kB / 453.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.1248, allocations: 0.7322 MB / 454.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.395e-05/0.1249, allocations: 17.41 kB / 454.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.018e-05/0.125, allocations: 15.44 kB / 454.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of SimCode: time 1.562e-06/0.125, allocations: 0 / 454.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of Templates: time 0.005179/0.1302, allocations: 1.951 MB / 456.3 MB, free: 3.184 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)