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.01038/0.01038, allocations: 89 kB / 15.91 MB, free: 6.301 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.002032/0.002032, allocations: 198.2 kB / 16.83 MB, free: 6.234 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.6/1.6, allocations: 205.1 MB / 222.7 MB, free: 4.672 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.07455/0.07455, allocations: 12.6 MB / 282.6 MB, free: 8.75 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.001762/0.001762, allocations: 83.89 kB / 342.8 MB, free: 21.17 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.0988, allocations: 49.39 MB / 392.2 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.003799/0.1026, allocations: 2.024 MB / 394.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.104, allocations: 0.6632 MB / 394.9 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.1042, allocations: 0 / 394.9 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.833e-05/0.1043, allocations: 11.86 kB / 394.9 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001557/0.1045, allocations: 23.84 kB / 394.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000451/0.1049, allocations: 95.86 kB / 395 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002155/0.1051, allocations: 188 kB / 395.2 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.1054, allocations: 88.31 kB / 395.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.1055, allocations: 75.69 kB / 395.3 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.1057, allocations: 87.59 kB / 395.4 MB, free: 436 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.034e-05/0.1057, allocations: 8 kB / 395.4 MB, free: 428 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.481e-05/0.1057, allocations: 16 kB / 395.4 MB, free: 412 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.86e-05/0.1058, allocations: 35.83 kB / 395.5 MB, free: 376 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.712e-05/0.1059, allocations: 79.53 kB / 395.6 MB, free: 296 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.1061, allocations: 187.6 kB / 395.7 MB, free: 108 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1062, allocations: 0 / 395.7 MB, free: 108 kB / 286.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1062, allocations: 4 kB / 395.7 MB, free: 104 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1062, allocations: 0 / 395.7 MB, free: 104 kB / 286.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.001059/0.1072, allocations: 0.5218 MB / 396.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.1073, allocations: 12.03 kB / 396.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.297e-05/0.1074, allocations: 28.66 kB / 396.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.1077, allocations: 232.4 kB / 396.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-05/0.1078, allocations: 46.53 kB / 396.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.086e-05/0.1079, allocations: 19.94 kB / 396.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008229/0.1087, allocations: 336.3 kB / 396.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1087, allocations: 0 / 396.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.1088, allocations: 7.938 kB / 396.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.998e-06/0.1088, allocations: 4 kB / 396.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.1092, allocations: 127.8 kB / 397.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009904/0.1102, allocations: 473.2 kB / 397.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005767/0.1108, allocations: 209.1 kB / 397.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.1111, allocations: 101.7 kB / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.1112, allocations: 0 / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004488/0.1116, allocations: 119.5 kB / 397.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.505e-06/0.1117, allocations: 0 / 397.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001087/0.1127, allocations: 289.2 kB / 398.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.1129, allocations: 89.02 kB / 398.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002319/0.1131, allocations: 146.4 kB / 398.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.1131, allocations: 41.69 kB / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.554e-05/0.1132, allocations: 112.5 kB / 398.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.587e-05/0.1133, allocations: 43.53 kB / 398.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.265e-05/0.1134, allocations: 41.7 kB / 398.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1135, allocations: 330.8 kB / 399 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.1137, allocations: 60.19 kB / 399.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.1141, allocations: 151.4 kB / 399.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004297/0.1145, allocations: 235.7 kB / 399.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1145, allocations: 0 / 399.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005615/0.1151, allocations: 275.1 kB / 399.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.959e-05/0.1151, allocations: 36.83 kB / 399.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.1151, allocations: 0 / 399.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1152, allocations: 11.98 kB / 399.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.1154, allocations: 43.91 kB / 399.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.1154, allocations: 7.938 kB / 399.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.1156, allocations: 31.83 kB / 399.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.1156, allocations: 12.09 kB / 399.9 MB, free: 11.62 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.0001383/0.1158, allocations: 145.7 kB / 400 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.1159, allocations: 105.4 kB / 400.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.408e-05/0.116, allocations: 24.7 kB / 400.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.116, allocations: 4 kB / 400.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.899e-05/0.1161, allocations: 3.938 kB / 400.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1161, allocations: 0 / 400.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007703/0.1168, allocations: 490.3 kB / 400.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1169, allocations: 3.938 kB / 400.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.1171, allocations: 43.91 kB / 400.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.1171, allocations: 3.938 kB / 400.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.1171, allocations: 11.97 kB / 400.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.1171, allocations: 0 / 400.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1171, allocations: 0 / 400.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000624/0.1177, allocations: 331.8 kB / 401 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.436e-05/0.1178, allocations: 96.86 kB / 401.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.05e-05/0.1179, allocations: 7.938 kB / 401.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.1181, allocations: 15.98 kB / 401.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.579e-05/0.1182, allocations: 19.97 kB / 401.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.1182, allocations: 8 kB / 401.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.1183, allocations: 116 kB / 401.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1183, allocations: 0 / 401.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003163/0.1186, allocations: 35.91 kB / 401.3 MB, free: 10.07 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 0.0001566/0.1188, allocations: 107.1 kB / 401.4 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005613/0.1193, allocations: 239.2 kB / 401.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1194, allocations: 0 / 401.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.1196, allocations: 65.05 kB / 401.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.12, allocations: 76.19 kB / 401.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007729/0.1208, allocations: 380.4 kB / 402.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.1211, allocations: 0.7325 MB / 402.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.468e-05/0.1212, allocations: 17.42 kB / 402.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.533e-05/0.1213, allocations: 15.44 kB / 402.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1213, allocations: 0 / 402.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of Templates: time 0.004683/0.126, allocations: 1.74 MB / 404.6 MB, free: 6.637 MB / 302.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)