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.000755/0.000755, allocations: 95.77 kB / 15.74 MB, free: 420 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.0007947/0.0007948, allocations: 175.7 kB / 16.62 MB, free: 6.883 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.245/1.245, allocations: 223.3 MB / 240.7 MB, free: 5.418 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.1602/0.1602, allocations: 12.03 MB / 303.8 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002647/0.0002647, allocations: 11.94 kB / 367.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.081/0.08128, allocations: 53.34 MB / 421 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.002697/0.08401, allocations: 2.338 MB / 423.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007967/0.08482, allocations: 0.6236 MB / 424 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.081e-05/0.08491, allocations: 3.938 kB / 424 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001922/0.08512, allocations: 51.7 kB / 424 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.237e-05/0.0852, allocations: 11.86 kB / 424 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.08546, allocations: 99.75 kB / 424.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001607/0.08564, allocations: 156 kB / 424.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.08579, allocations: 86.55 kB / 424.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.809e-05/0.08587, allocations: 55.72 kB / 424.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.947e-05/0.08597, allocations: 55.69 kB / 424.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.08599, allocations: 4 kB / 424.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.45e-05/0.08606, allocations: 23.98 kB / 424.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.649e-05/0.08612, allocations: 35.84 kB / 424.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.612e-05/0.08617, allocations: 61.58 kB / 424.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.08635, allocations: 159.9 kB / 424.8 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.08637, allocations: 4 kB / 424.8 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.08637, allocations: 0 / 424.8 MB, free: 320 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.08638, allocations: 0 / 424.8 MB, free: 320 kB / 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.1484/0.2348, allocations: 447.1 kB / 425.2 MB, free: 39.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2348, allocations: 7.531 kB / 425.2 MB, free: 39.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.696e-05/0.2349, allocations: 23.52 kB / 425.2 MB, free: 39.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.2352, allocations: 230.3 kB / 425.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.2352, allocations: 14.28 kB / 425.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.2352, allocations: 12.53 kB / 425.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.2356, allocations: 192.8 kB / 425.7 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.2356, allocations: 0.625 kB / 425.7 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.2356, allocations: 7.781 kB / 425.7 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.2356, allocations: 5.219 kB / 425.7 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.2358, allocations: 84.22 kB / 425.8 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006479/0.2364, allocations: 0.5761 MB / 426.3 MB, free: 38.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.582e-05/0.2365, allocations: 65.56 kB / 426.4 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.639e-05/0.2366, allocations: 32.52 kB / 426.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.2366, allocations: 0.6562 kB / 426.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001456/0.2368, allocations: 98.45 kB / 426.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.2368, allocations: 0 / 426.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002489/0.237, allocations: 136.7 kB / 426.7 MB, free: 38.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.2371, allocations: 83.59 kB / 426.7 MB, free: 38.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.2372, allocations: 182.1 kB / 426.9 MB, free: 38.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.2372, allocations: 33.45 kB / 427 MB, free: 38.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.572e-05/0.2373, allocations: 142.3 kB / 427.1 MB, free: 38.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.2373, allocations: 29.67 kB / 427.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/0.2373, allocations: 5.531 kB / 427.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.406e-05/0.2374, allocations: 328.3 kB / 427.4 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.15e-05/0.2374, allocations: 24.27 kB / 427.5 MB, free: 38.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.835e-05/0.2375, allocations: 114.3 kB / 427.6 MB, free: 37.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.855e-05/0.2376, allocations: 46.73 kB / 427.6 MB, free: 37.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.2376, allocations: 3.719 kB / 427.6 MB, free: 37.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002227/0.2378, allocations: 180.6 kB / 427.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.2378, allocations: 7.25 kB / 427.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2378, allocations: 4.844 kB / 427.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.2379, allocations: 4.406 kB / 427.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-05/0.2379, allocations: 26.02 kB / 427.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.238, allocations: 3.922 kB / 427.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.616e-05/0.238, allocations: 17.22 kB / 427.9 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.238, allocations: 13.66 kB / 427.9 MB, free: 37.92 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,$whenCondition2,pre1.u,$whenCondition1,$PRE.pre1.u,realtimeSynchronize.trigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.2382, allocations: 185.8 kB / 428.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.2382, allocations: 9.719 kB / 428.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.2383, allocations: 20.41 kB / 428.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.2383, allocations: 0 / 428.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2383, allocations: 0.9375 kB / 428.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2383, allocations: 2.938 kB / 428.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003385/0.2386, allocations: 434.8 kB / 428.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2387, allocations: 0.5 kB / 428.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.919e-06/0.2387, allocations: 0 / 428.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.2387, allocations: 14.03 kB / 428.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.2387, allocations: 4.312 kB / 428.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2387, allocations: 14.17 kB / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2387, allocations: 0 / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.2389, allocations: 211.1 kB / 428.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.372e-05/0.2389, allocations: 88.67 kB / 428.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.2389, allocations: 3.25 kB / 428.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.509e-05/0.239, allocations: 7.281 kB / 428.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.239, allocations: 6.047 kB / 428.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.239, allocations: 9.234 kB / 428.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.733e-05/0.2391, allocations: 115.7 kB / 429 MB, free: 37.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2391, allocations: 0 / 429 MB, free: 37.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.2394, allocations: 49.33 kB / 429 MB, free: 37.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004577/0.2399, allocations: 274.4 kB / 429.3 MB, free: 37.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.2401, allocations: 98.62 kB / 429.4 MB, free: 37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2401, allocations: 0 / 429.4 MB, free: 37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.548e-05/0.2401, allocations: 34.39 kB / 429.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.2404, allocations: 24.52 kB / 429.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004756/0.2409, allocations: 356.3 kB / 429.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.241, allocations: 0.7307 MB / 430.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.109e-05/0.2411, allocations: 20.05 kB / 430.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.345e-05/0.2411, allocations: 15.59 kB / 430.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2411, allocations: 0 / 430.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of Templates: time 0.00351/0.2446, allocations: 1.412 MB / 432 MB, free: 35.92 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)