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.0007388/0.0007388, allocations: 97.41 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.0007727/0.0007727, allocations: 185.5 kB / 16.96 MB, free: 6.871 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.262/1.262, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.158/0.158, allocations: 12.03 MB / 304.2 MB, free: 1.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002778, allocations: 8 kB / 368.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07867/0.07896, allocations: 53.35 MB / 421.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.002818/0.08182, allocations: 2.4 MB / 424 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007895/0.08262, allocations: 0.6389 MB / 424.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.806e-05/0.0827, allocations: 7.938 kB / 424.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.08291, allocations: 51.7 kB / 424.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.351e-05/0.08299, allocations: 11.86 kB / 424.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.08326, allocations: 107.8 kB / 424.9 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.08344, allocations: 175.9 kB / 425 MB, free: 308 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.08362, allocations: 116 kB / 425.1 MB, free: 188 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.907e-05/0.08369, allocations: 51.72 kB / 425.2 MB, free: 136 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.895e-05/0.08379, allocations: 63.62 kB / 425.3 MB, free: 72 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.08381, allocations: 4 kB / 425.3 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.685e-05/0.08389, allocations: 31.98 kB / 425.3 MB, free: 36 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.937e-05/0.08394, allocations: 31.84 kB / 425.3 MB, free: 4 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1476/0.2315, allocations: 95.39 kB / 425.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.2318, allocations: 208.1 kB / 425.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2318, allocations: 0 / 425.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2318, allocations: 0 / 425.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.2319, allocations: 1.031 kB / 425.6 MB, free: 36.82 MB / 350.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.0004439/0.2323, allocations: 443.5 kB / 426.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.2323, allocations: 13.88 kB / 426.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.759e-05/0.2324, allocations: 19.48 kB / 426.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.2326, allocations: 243.5 kB / 426.3 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.2326, allocations: 7.75 kB / 426.3 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.2326, allocations: 16.56 kB / 426.3 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.2329, allocations: 186.2 kB / 426.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.233, allocations: 3.938 kB / 426.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.233, allocations: 12.28 kB / 426.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.233, allocations: 3.812 kB / 426.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.2331, allocations: 87.64 kB / 426.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006155/0.2338, allocations: 0.5747 MB / 427.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.988e-05/0.2339, allocations: 66.38 kB / 427.3 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.538e-05/0.2339, allocations: 32.06 kB / 427.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.2339, allocations: 3.531 kB / 427.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001347/0.2341, allocations: 91.84 kB / 427.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.2341, allocations: 1.375 kB / 427.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002383/0.2343, allocations: 140 kB / 427.5 MB, free: 35.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.2344, allocations: 88.75 kB / 427.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.2345, allocations: 186.9 kB / 427.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.2345, allocations: 30.67 kB / 427.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.35e-05/0.2346, allocations: 143.1 kB / 428 MB, free: 35.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.2346, allocations: 30.36 kB / 428 MB, free: 35.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.2346, allocations: 31.77 kB / 428 MB, free: 35.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.946e-05/0.2347, allocations: 320.6 kB / 428.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.229e-05/0.2347, allocations: 26.52 kB / 428.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.837e-05/0.2348, allocations: 123 kB / 428.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.235, allocations: 195 kB / 428.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.235, allocations: 3.469 kB / 428.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002195/0.2352, allocations: 183.7 kB / 428.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2353, allocations: 13.23 kB / 428.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.2353, allocations: 7 kB / 428.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2353, allocations: 3.969 kB / 428.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.865e-05/0.2354, allocations: 17.56 kB / 428.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.2354, allocations: 13.12 kB / 428.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.592e-05/0.2354, allocations: 17.69 kB / 428.9 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.2355, allocations: 5.906 kB / 428.9 MB, free: 34.65 MB / 350.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.0001523/0.2356, allocations: 179.6 kB / 429.1 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.864e-05/0.2356, allocations: 16.75 kB / 429.1 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.2357, allocations: 14.5 kB / 429.2 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2357, allocations: 0 / 429.2 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.2357, allocations: 7.031 kB / 429.2 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2357, allocations: 0 / 429.2 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/0.236, allocations: 432.2 kB / 429.6 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.236, allocations: 0.6875 kB / 429.6 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.238e-06/0.236, allocations: 6.25 kB / 429.6 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2361, allocations: 7.453 kB / 429.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.2361, allocations: 3.562 kB / 429.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.2361, allocations: 3.375 kB / 429.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2361, allocations: 4.688 kB / 429.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.2362, allocations: 217.4 kB / 429.8 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.385e-05/0.2363, allocations: 91.06 kB / 429.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.2363, allocations: 7.938 kB / 429.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.694e-05/0.2364, allocations: 0 / 429.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.513e-05/0.2364, allocations: 9.625 kB / 429.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.2364, allocations: 6.625 kB / 429.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.251e-05/0.2365, allocations: 124.4 kB / 430.1 MB, free: 33.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2365, allocations: 0 / 430.1 MB, free: 33.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002968/0.2368, allocations: 41.09 kB / 430.1 MB, free: 33.86 MB / 350.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.0004396/0.2372, allocations: 275 kB / 430.4 MB, free: 33.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001682/0.2374, allocations: 98.91 kB / 430.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2374, allocations: 0 / 430.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.403e-05/0.2375, allocations: 31.05 kB / 430.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.2377, allocations: 14.69 kB / 430.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004744/0.2382, allocations: 380 kB / 430.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.2384, allocations: 0.7328 MB / 431.6 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.184e-05/0.2384, allocations: 22.91 kB / 431.6 MB, free: 32.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.533e-05/0.2384, allocations: 15.66 kB / 431.6 MB, free: 32.77 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2384, allocations: 0 / 431.6 MB, free: 32.77 MB / 350.1 MB Notification: Performance of Templates: time 0.003613/0.2421, allocations: 1.439 MB / 433.1 MB, free: 32.64 MB / 350.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)