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.0006697/0.0006697, allocations: 97.02 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007437/0.0007437, allocations: 185 kB / 16.96 MB, free: 6.914 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.222/1.222, allocations: 205.4 MB / 223.2 MB, free: 5.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06575/0.06575, allocations: 12.6 MB / 284 MB, free: 8.594 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.0006435/0.0006437, allocations: 16 kB / 345.2 MB, free: 20.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07535/0.076, allocations: 50.39 MB / 395.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.001912/0.07795, allocations: 1.654 MB / 397.2 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009525/0.07892, allocations: 0.6516 MB / 397.9 MB, free: 108 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.07904, allocations: 8 kB / 397.9 MB, free: 100 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.496e-05/0.07908, allocations: 11.86 kB / 397.9 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001161/0.07921, allocations: 23.84 kB / 397.9 MB, free: 64 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003752/0.07959, allocations: 91.94 kB / 398 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.07978, allocations: 191.9 kB / 398.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.07996, allocations: 84.33 kB / 398.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.08009, allocations: 59.7 kB / 398.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.08021, allocations: 75.61 kB / 398.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.08024, allocations: 4 kB / 398.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.715e-05/0.08027, allocations: 4 kB / 398.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.371e-05/0.08031, allocations: 27.86 kB / 398.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.641e-05/0.08039, allocations: 97.22 kB / 398.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.08056, allocations: 183.6 kB / 398.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.08057, allocations: 3.938 kB / 398.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.08058, allocations: 0 / 398.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.08059, allocations: 0 / 398.7 MB, free: 15.25 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.0007118/0.08131, allocations: 0.5023 MB / 399.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.08135, allocations: 8.031 kB / 399.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/0.0814, allocations: 16.75 kB / 399.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.08162, allocations: 236.5 kB / 399.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.626e-05/0.08168, allocations: 38.59 kB / 399.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.08172, allocations: 27.94 kB / 399.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006355/0.08237, allocations: 346.1 kB / 399.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.08238, allocations: 0 / 399.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.08241, allocations: 4 kB / 399.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.08243, allocations: 4 kB / 399.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005429/0.08297, allocations: 151.9 kB / 400 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007202/0.08373, allocations: 469.2 kB / 400.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000462/0.08421, allocations: 217.1 kB / 400.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.08446, allocations: 121.7 kB / 400.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.08449, allocations: 4 kB / 400.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002849/0.08478, allocations: 119.3 kB / 400.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.08479, allocations: 0 / 400.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007347/0.08553, allocations: 310 kB / 401.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.0856, allocations: 85.11 kB / 401.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.08572, allocations: 150.4 kB / 401.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.08575, allocations: 33.7 kB / 401.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.018e-05/0.08581, allocations: 112.4 kB / 401.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.08585, allocations: 43.61 kB / 401.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.898e-05/0.0859, allocations: 29.7 kB / 401.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.064e-05/0.08599, allocations: 326.8 kB / 402 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.08619, allocations: 72.12 kB / 402.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.08642, allocations: 155.3 kB / 402.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003966/0.08682, allocations: 251.8 kB / 402.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.08684, allocations: 4 kB / 402.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005198/0.08736, allocations: 295.1 kB / 402.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.0874, allocations: 29.7 kB / 402.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.08741, allocations: 4 kB / 402.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.08743, allocations: 4 kB / 402.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.08762, allocations: 47.91 kB / 402.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.08764, allocations: 15.86 kB / 402.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.08781, allocations: 35.83 kB / 402.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.08784, allocations: 8 kB / 402.9 MB, free: 10.68 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,$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.0001104/0.08795, allocations: 141.7 kB / 403 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.08812, allocations: 113.5 kB / 403.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.509e-05/0.0882, allocations: 24.7 kB / 403.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.08821, allocations: 0 / 403.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.08822, allocations: 7.938 kB / 403.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.08823, allocations: 4 kB / 403.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006274/0.08886, allocations: 0.4944 MB / 403.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.08888, allocations: 4 kB / 403.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.08906, allocations: 43.91 kB / 403.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.08907, allocations: 7.938 kB / 403.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.08909, allocations: 3.984 kB / 403.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.0891, allocations: 4 kB / 403.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.0891, allocations: 0 / 403.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005238/0.08963, allocations: 339.8 kB / 404.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.329e-05/0.08968, allocations: 92.94 kB / 404.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.08972, allocations: 15.94 kB / 404.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.0899, allocations: 19.98 kB / 404.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.08997, allocations: 19.97 kB / 404.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.09, allocations: 4 kB / 404.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.687e-05/0.09007, allocations: 119.9 kB / 404.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09007, allocations: 0 / 404.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002729/0.09035, allocations: 35.91 kB / 404.4 MB, free: 9.094 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 (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.929e-05/0.09046, allocations: 115.1 kB / 404.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004978/0.09096, allocations: 251.5 kB / 404.7 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.09097, allocations: 0 / 404.7 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001844/0.09116, allocations: 71.89 kB / 404.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.09157, allocations: 75.67 kB / 404.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000653/0.09223, allocations: 391.8 kB / 405.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.09247, allocations: 0.7247 MB / 406 MB, free: 7.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.951e-05/0.09255, allocations: 17.42 kB / 406 MB, free: 7.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.111e-05/0.0926, allocations: 19.44 kB / 406 MB, free: 7.371 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09261, allocations: 0 / 406 MB, free: 7.371 MB / 302.1 MB Notification: Performance of Templates: time 0.003879/0.09649, allocations: 1.722 MB / 407.7 MB, free: 5.648 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: