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.0009696/0.0009697, allocations: 102.9 kB / 16.31 MB, free: 6.391 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.0008987/0.0008987, allocations: 190.5 kB / 17.24 MB, free: 5.922 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.37/1.37, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.05396/0.05396, allocations: 12.05 MB / 303.1 MB, free: 3.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 72.09 kB / 366.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2784, allocations: 52.32 MB / 418.8 MB, free: 21.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004552/0.2831, allocations: 2.741 MB / 421.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000946/0.2841, allocations: 0.6544 MB / 422.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.2842, allocations: 11.94 kB / 422.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002689/0.2845, allocations: 59.56 kB / 422.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.598e-05/0.2846, allocations: 23.78 kB / 422.3 MB, free: 17.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.2849, allocations: 119.6 kB / 422.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.2851, allocations: 188 kB / 422.6 MB, free: 17.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.2854, allocations: 108 kB / 422.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.309e-05/0.2855, allocations: 79.62 kB / 422.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.2856, allocations: 79.62 kB / 422.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.102e-05/0.2856, allocations: 16 kB / 422.9 MB, free: 17.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.2857, allocations: 43.98 kB / 422.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.876e-05/0.2858, allocations: 55.83 kB / 423 MB, free: 16.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.084e-05/0.2859, allocations: 75.55 kB / 423 MB, free: 16.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.2862, allocations: 225.2 kB / 423.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2862, allocations: 0 / 423.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.2862, allocations: 0 / 423.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.2862, allocations: 0 / 423.3 MB, free: 16.63 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.0006364/0.2869, allocations: 482.7 kB / 423.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.2869, allocations: 8.031 kB / 423.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.285e-05/0.287, allocations: 20.75 kB / 423.7 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.2873, allocations: 244.6 kB / 424 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.2873, allocations: 8.375 kB / 424 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.2873, allocations: 20.38 kB / 424 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.2876, allocations: 193.4 kB / 424.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.2876, allocations: 0 / 424.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.2876, allocations: 4 kB / 424.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2877, allocations: 7.938 kB / 424.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.2878, allocations: 87.81 kB / 424.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006352/0.2884, allocations: 0.5782 MB / 424.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.129e-05/0.2885, allocations: 57.22 kB / 424.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.685e-05/0.2886, allocations: 37.77 kB / 425 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.2886, allocations: 80 / 425 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001965/0.2888, allocations: 104.9 kB / 425.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 9.71e-07/0.2888, allocations: 0 / 425.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002681/0.2891, allocations: 137.5 kB / 425.2 MB, free: 14.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.2891, allocations: 85.05 kB / 425.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.2893, allocations: 174.3 kB / 425.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.2893, allocations: 33.7 kB / 425.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.6e-05/0.2894, allocations: 144 kB / 425.6 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.2894, allocations: 23.86 kB / 425.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.2895, allocations: 53.59 kB / 425.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.847e-05/0.2895, allocations: 326.8 kB / 426 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.962e-05/0.2896, allocations: 23.98 kB / 426.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.2897, allocations: 112 kB / 426.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000184/0.2898, allocations: 195 kB / 426.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2899, allocations: 4 kB / 426.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002008/0.2901, allocations: 181.5 kB / 426.5 MB, free: 13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.2901, allocations: 14.38 kB / 426.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2901, allocations: 4 kB / 426.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.2901, allocations: 4 kB / 426.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.311e-05/0.2902, allocations: 23.92 kB / 426.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.2902, allocations: 8.016 kB / 426.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.162e-05/0.2903, allocations: 15.84 kB / 426.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.2903, allocations: 19.92 kB / 426.6 MB, free: 12.91 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.0001912/0.2905, allocations: 185.1 kB / 426.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.2905, allocations: 11.81 kB / 426.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.2906, allocations: 13.41 kB / 426.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2906, allocations: 0 / 426.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.2906, allocations: 7.938 kB / 426.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2906, allocations: 0 / 426.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.2909, allocations: 426.6 kB / 427.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2909, allocations: 7.938 kB / 427.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.645e-06/0.2909, allocations: 0 / 427.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.2909, allocations: 3.938 kB / 427.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.291, allocations: 4 kB / 427.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.291, allocations: 3.938 kB / 427.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.291, allocations: 0 / 427.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.2911, allocations: 212.3 kB / 427.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.2912, allocations: 104.8 kB / 427.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.2912, allocations: 0 / 427.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.09e-05/0.2913, allocations: 4 kB / 427.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.146e-05/0.2913, allocations: 0 / 427.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.2913, allocations: 7.984 kB / 427.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.507e-05/0.2914, allocations: 132.8 kB / 427.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2914, allocations: 0 / 427.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000422/0.2918, allocations: 47.78 kB / 427.8 MB, free: 11.66 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.0005396/0.2924, allocations: 270.2 kB / 428 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001961/0.2926, allocations: 103.8 kB / 428.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2926, allocations: 0 / 428.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.822e-05/0.2927, allocations: 35.92 kB / 428.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.2929, allocations: 16.8 kB / 428.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004945/0.2934, allocations: 300.2 kB / 428.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/0.2936, allocations: 0.7358 MB / 429.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.876e-05/0.2937, allocations: 21.41 kB / 429.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.2937, allocations: 15.44 kB / 429.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of SimCode: time 1.8e-07/0.2937, allocations: 0 / 429.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Templates: time 0.004131/0.2978, allocations: 1.488 MB / 430.7 MB, free: 8.699 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)