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.001128/0.001128, allocations: 106.8 kB / 16.31 MB, free: 6.359 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.001337/0.001338, allocations: 186.8 kB / 17.24 MB, free: 5.879 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.355/1.355, allocations: 222.9 MB / 240.9 MB, free: 15.17 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.05448/0.05448, allocations: 12.05 MB / 303.1 MB, free: 3.176 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 67.91 kB / 366.5 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2421, allocations: 52.33 MB / 418.8 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004044/0.2462, allocations: 2.73 MB / 421.5 MB, free: 18.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009308/0.2472, allocations: 0.6649 MB / 422.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.2473, allocations: 3.938 kB / 422.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.2476, allocations: 51.58 kB / 422.2 MB, free: 17.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.691e-05/0.2477, allocations: 23.78 kB / 422.3 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.248, allocations: 123.7 kB / 422.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001634/0.2482, allocations: 183.9 kB / 422.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.2484, allocations: 114.2 kB / 422.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.547e-05/0.2485, allocations: 79.64 kB / 422.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.93e-05/0.2486, allocations: 79.61 kB / 422.8 MB, free: 17.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.2486, allocations: 16 kB / 422.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.209e-05/0.2487, allocations: 36 kB / 422.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.2488, allocations: 55.84 kB / 422.9 MB, free: 16.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.991e-05/0.2488, allocations: 91.5 kB / 423 MB, free: 16.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002281/0.2491, allocations: 217.3 kB / 423.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2491, allocations: 3.938 kB / 423.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2491, allocations: 0 / 423.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.2491, allocations: 0 / 423.2 MB, free: 16.62 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.000456/0.2496, allocations: 482.7 kB / 423.7 MB, free: 16.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.2496, allocations: 8.031 kB / 423.7 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.869e-05/0.2497, allocations: 24.73 kB / 423.7 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.2499, allocations: 244.6 kB / 424 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.2499, allocations: 8.375 kB / 424 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.2499, allocations: 16.38 kB / 424 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.2502, allocations: 193.5 kB / 424.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2502, allocations: 0 / 424.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.2502, allocations: 4 kB / 424.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.2502, allocations: 4 kB / 424.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.2504, allocations: 99.62 kB / 424.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.2509, allocations: 0.5744 MB / 424.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.233e-05/0.251, allocations: 73.14 kB / 424.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.62e-05/0.2511, allocations: 29.77 kB / 425 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.2511, allocations: 0 / 425 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001663/0.2513, allocations: 93.02 kB / 425.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 9.02e-07/0.2513, allocations: 0 / 425.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002489/0.2516, allocations: 137.5 kB / 425.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.2516, allocations: 89.03 kB / 425.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.2517, allocations: 174.3 kB / 425.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.2518, allocations: 33.7 kB / 425.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.033e-05/0.2518, allocations: 144.1 kB / 425.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.2518, allocations: 23.75 kB / 425.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.2519, allocations: 49.73 kB / 425.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.89e-05/0.252, allocations: 326.8 kB / 426 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.731e-05/0.252, allocations: 20 kB / 426 MB, free: 13.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.214e-05/0.2521, allocations: 120 kB / 426.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.2523, allocations: 190.9 kB / 426.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2523, allocations: 0 / 426.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002117/0.2525, allocations: 185.2 kB / 426.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2525, allocations: 10.56 kB / 426.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.2525, allocations: 8 kB / 426.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.2526, allocations: 4 kB / 426.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.178e-05/0.2526, allocations: 15.94 kB / 426.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.2527, allocations: 11.92 kB / 426.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.189e-05/0.2527, allocations: 23.78 kB / 426.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.2528, allocations: 8 kB / 426.6 MB, free: 12.9 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.000169/0.2529, allocations: 185.4 kB / 426.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.969e-05/0.253, allocations: 11.81 kB / 426.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.585e-05/0.253, allocations: 17.39 kB / 426.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.253, allocations: 7.938 kB / 426.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.253, allocations: 7.875 kB / 426.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.253, allocations: 0 / 426.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/0.2533, allocations: 430.3 kB / 427.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2534, allocations: 4 kB / 427.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.196e-06/0.2534, allocations: 4 kB / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.2534, allocations: 3.938 kB / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/0.2534, allocations: 4 kB / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.2534, allocations: 160 / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2534, allocations: 0 / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.2536, allocations: 216.3 kB / 427.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.891e-05/0.2536, allocations: 96.8 kB / 427.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.2536, allocations: 7.922 kB / 427.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.494e-05/0.2537, allocations: 4 kB / 427.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.2537, allocations: 4 kB / 427.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.2537, allocations: 11.98 kB / 427.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.863e-05/0.2538, allocations: 124.8 kB / 427.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2538, allocations: 0 / 427.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00028/0.2541, allocations: 47.78 kB / 427.8 MB, free: 11.64 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.0004442/0.2545, allocations: 262.3 kB / 428 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.2547, allocations: 99.78 kB / 428.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2547, allocations: 0 / 428.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.264e-05/0.2548, allocations: 35.98 kB / 428.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.2551, allocations: 12.81 kB / 428.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004459/0.2555, allocations: 308.2 kB / 428.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.2557, allocations: 0.7358 MB / 429.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.756e-05/0.2557, allocations: 13.42 kB / 429.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.237e-05/0.2558, allocations: 27.42 kB / 429.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2558, allocations: 0 / 429.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Templates: time 0.003798/0.2596, allocations: 1.483 MB / 430.7 MB, free: 8.691 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)