Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001242, allocations: 107.2 kB / 16.57 MB, free: 6.73 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.001289/0.001289, allocations: 193.9 kB / 17.48 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 241.2 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05524/0.05524, allocations: 12.04 MB / 303.3 MB, free: 3.367 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 55.91 kB / 366.4 MB, free: 4.242 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2056, allocations: 52.33 MB / 418.8 MB, free: 21.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004194/0.2099, allocations: 2.773 MB / 421.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000738/0.2107, allocations: 0.6428 MB / 422.2 MB, free: 17.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.792e-05/0.2108, allocations: 7.938 kB / 422.2 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002397/0.211, allocations: 47.72 kB / 422.2 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.259e-05/0.2111, allocations: 19.84 kB / 422.2 MB, free: 17.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.2114, allocations: 110.5 kB / 422.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001295/0.2115, allocations: 176 kB / 422.5 MB, free: 17.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.2117, allocations: 108 kB / 422.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.739e-05/0.2118, allocations: 71.69 kB / 422.7 MB, free: 17.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.664e-05/0.2119, allocations: 75.62 kB / 422.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.2119, allocations: 8 kB / 422.8 MB, free: 17.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.652e-05/0.212, allocations: 31.98 kB / 422.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.071e-05/0.212, allocations: 43.83 kB / 422.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.232e-05/0.2121, allocations: 71.55 kB / 422.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.2123, allocations: 169.6 kB / 423.1 MB, free: 17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2123, allocations: 3.938 kB / 423.1 MB, free: 17 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2123, allocations: 4 kB / 423.1 MB, free: 17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.2123, allocations: 0 / 423.1 MB, free: 17 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.0005118/0.2128, allocations: 482.8 kB / 423.6 MB, free: 16.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.2129, allocations: 11.97 kB / 423.6 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.2129, allocations: 20.75 kB / 423.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.2131, allocations: 239 kB / 423.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.2131, allocations: 12.38 kB / 423.8 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.2132, allocations: 12.38 kB / 423.9 MB, free: 16.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.2135, allocations: 193.5 kB / 424 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.2135, allocations: 0 / 424 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.2135, allocations: 8 kB / 424.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.2135, allocations: 7.938 kB / 424.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.2136, allocations: 91.75 kB / 424.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006059/0.2143, allocations: 0.5782 MB / 424.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.344e-05/0.2144, allocations: 65.14 kB / 424.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.655e-05/0.2144, allocations: 37.77 kB / 424.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.2144, allocations: 4 kB / 424.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.2146, allocations: 97.06 kB / 424.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.2146, allocations: 0 / 424.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002561/0.2149, allocations: 137.4 kB / 425.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.2149, allocations: 89.17 kB / 425.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.2151, allocations: 175.5 kB / 425.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.2151, allocations: 37.64 kB / 425.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.997e-05/0.2152, allocations: 144.1 kB / 425.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.2152, allocations: 27.73 kB / 425.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.078e-05/0.2152, allocations: 49.59 kB / 425.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.859e-05/0.2153, allocations: 322.8 kB / 425.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.952e-05/0.2153, allocations: 23.98 kB / 425.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.173e-05/0.2154, allocations: 115.5 kB / 426 MB, free: 13.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/0.2156, allocations: 194.9 kB / 426.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.2156, allocations: 0 / 426.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002154/0.2158, allocations: 189.2 kB / 426.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2159, allocations: 4 kB / 426.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.2159, allocations: 4 kB / 426.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.2159, allocations: 4 kB / 426.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.434e-05/0.216, allocations: 23.92 kB / 426.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.216, allocations: 8.312 kB / 426.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.509e-05/0.2161, allocations: 23.78 kB / 426.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.2161, allocations: 8 kB / 426.5 MB, free: 13.27 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: realtimeSynchronize.rtSync_Sampled.simTime:DISCRETE(flow=false unit = "s" fixed = true ) "(= time) Simulation time at the the real-time sync function invocation" type: Real realtimeSynchronize.rtSync_Sampled.lastSimTime:DISCRETE(unit = "s" fixed = true ) "Simulation time at the previous invocation of the real-time sync function, the simulation start time at its the first invocation" type: Real realtimeSynchronize.rtSync_Sampled.computingTime:DISCRETE(flow=false unit = "s" fixed = true ) "Wall clock time between invocations of the real-time sync function, i.e., "computing time" in seconds" type: Real realtimeSynchronize.rtSync_Sampled.remainingTime:DISCRETE(flow=false unit = "s" fixed = true ) "Wall clock time that is left before real-time deadline is reached" type: Real realtimeSynchronize.rtSync_Sampled.wallClockTime:DISCRETE(flow=false unit = "s" fixed = true ) "Wall clock time (= real-time) that elapsed since initialization of the real-time synchronization object" type: Real realtimeSynchronize.rtSync_Sampled.lastStepSize:DISCRETE(unit = "s" fixed = true ) "(= time - lastSimTime) The last simulation time step size between invocations of the real-time sync function" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.realtimeSynchronize.rtSync_Sampled.simTime,realtimeSynchronize.rtSync_Sampled.simTime,$PRE.realtimeSynchronize.rtSync_Sampled.lastSimTime,realtimeSynchronize.rtSync_Sampled.lastSimTime,$PRE.realtimeSynchronize.rtSync_Sampled.computingTime,realtimeSynchronize.rtSync_Sampled.computingTime,$PRE.realtimeSynchronize.rtSync_Sampled.remainingTime,realtimeSynchronize.rtSync_Sampled.remainingTime,$PRE.realtimeSynchronize.rtSync_Sampled.wallClockTime,realtimeSynchronize.rtSync_Sampled.wallClockTime,$PRE.realtimeSynchronize.rtSync_Sampled.lastStepSize,realtimeSynchronize.rtSync_Sampled.lastStepSize,pre1.u,$whenCondition2,realtimeSynchronize.trigger,$PRE.pre1.u,$whenCondition1,realtimeSynchronize.rtSync_Sampled.internalTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * 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.0001665/0.2163, allocations: 168.6 kB / 426.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.2163, allocations: 19.8 kB / 426.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.178e-05/0.2163, allocations: 25.34 kB / 426.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.2163, allocations: 0 / 426.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2163, allocations: 7.875 kB / 426.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2163, allocations: 0 / 426.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003219/0.2167, allocations: 430.4 kB / 427.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2167, allocations: 0 / 427.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-06/0.2167, allocations: 0 / 427.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2167, allocations: 7.938 kB / 427.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.2167, allocations: 4 kB / 427.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2167, allocations: 0 / 427.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2167, allocations: 0 / 427.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001462/0.2169, allocations: 220.2 kB / 427.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.898e-05/0.2169, allocations: 100.8 kB / 427.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.2169, allocations: 4 kB / 427.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.713e-05/0.217, allocations: 0 / 427.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.2171, allocations: 12 kB / 427.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.2171, allocations: 7.984 kB / 427.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.022e-05/0.2171, allocations: 127.5 kB / 427.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2171, allocations: 0 / 427.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.2175, allocations: 47.78 kB / 427.6 MB, free: 12.02 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: 11 (realtimeSynchronize.rtSync_Sampled.internalTrigger,realtimeSynchronize.trigger,$whenCondition2,$whenCondition1,pre1.u,realtimeSynchronize.rtSync_Sampled.wallClockTime,realtimeSynchronize.rtSync_Sampled.remainingTime,realtimeSynchronize.rtSync_Sampled.computingTime,realtimeSynchronize.rtSync_Sampled.simTime,realtimeSynchronize.rtSync_Sampled.lastStepSize,realtimeSynchronize.rtSync_Sampled.lastSimTime) * Number of discrete states: 1 (pre1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004895/0.2179, allocations: 270.5 kB / 427.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.2181, allocations: 87.98 kB / 428 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.2181, allocations: 4 kB / 428 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.344e-05/0.2182, allocations: 43.84 kB / 428 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.2185, allocations: 19.92 kB / 428 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005664/0.2191, allocations: 396.4 kB / 428.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.2192, allocations: 0.7399 MB / 429.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.546e-05/0.2192, allocations: 15.44 kB / 429.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2192, allocations: 4 kB / 429.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Templates: time 0.003373/0.2226, allocations: 2.34 MB / 431.5 MB, free: 8.125 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe 2>&1)