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.001578/0.001578, allocations: 103 kB / 16.98 MB, free: 6.18 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.001726/0.001727, allocations: 185.3 kB / 17.91 MB, free: 5.281 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.525/1.525, allocations: 222.9 MB / 241.6 MB, free: 15.22 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.06421/0.06421, allocations: 12.05 MB / 303.8 MB, free: 3.172 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 63.89 kB / 367.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2058, allocations: 52.33 MB / 419.5 MB, free: 21.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.003813/0.2096, allocations: 2.731 MB / 422.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009445/0.2106, allocations: 0.662 MB / 422.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.2108, allocations: 7.938 kB / 422.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000246/0.2111, allocations: 51.58 kB / 422.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.2112, allocations: 23.78 kB / 422.9 MB, free: 17.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.2115, allocations: 131.1 kB / 423.1 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.2117, allocations: 184 kB / 423.3 MB, free: 17.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2119, allocations: 113 kB / 423.4 MB, free: 17.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.714e-05/0.212, allocations: 75.64 kB / 423.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.2121, allocations: 91.61 kB / 423.5 MB, free: 17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.332e-05/0.2121, allocations: 16 kB / 423.5 MB, free: 16.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.089e-05/0.2122, allocations: 36 kB / 423.6 MB, free: 16.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.02e-05/0.2123, allocations: 43.84 kB / 423.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.917e-05/0.2124, allocations: 91.52 kB / 423.7 MB, free: 16.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.2126, allocations: 213.3 kB / 423.9 MB, free: 16.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2126, allocations: 0 / 423.9 MB, free: 16.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2127, allocations: 0 / 423.9 MB, free: 16.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.2127, allocations: 4 kB / 423.9 MB, free: 16.61 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.0004987/0.2132, allocations: 478.7 kB / 424.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2132, allocations: 19.97 kB / 424.4 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.558e-05/0.2133, allocations: 20.73 kB / 424.4 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.2135, allocations: 244.6 kB / 424.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.2135, allocations: 12.38 kB / 424.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.2135, allocations: 12.38 kB / 424.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.2138, allocations: 189.5 kB / 424.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.2138, allocations: 0 / 424.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.2138, allocations: 11.94 kB / 424.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.2139, allocations: 11.94 kB / 424.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.214, allocations: 95.75 kB / 425 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006096/0.2146, allocations: 0.5665 MB / 425.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.429e-05/0.2147, allocations: 65.14 kB / 425.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.399e-05/0.2148, allocations: 33.77 kB / 425.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.2148, allocations: 3.984 kB / 425.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.215, allocations: 101 kB / 425.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.215, allocations: 0 / 425.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002397/0.2152, allocations: 125.5 kB / 425.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.2153, allocations: 96.97 kB / 426 MB, free: 14.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.2154, allocations: 170.3 kB / 426.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.2154, allocations: 37.69 kB / 426.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.724e-05/0.2155, allocations: 152.3 kB / 426.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.2155, allocations: 19.75 kB / 426.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.2156, allocations: 45.61 kB / 426.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.494e-05/0.2156, allocations: 330.8 kB / 426.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.755e-05/0.2157, allocations: 20 kB / 426.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.776e-05/0.2157, allocations: 112 kB / 426.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.2159, allocations: 194.9 kB / 427 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.2159, allocations: 0 / 427 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002246/0.2162, allocations: 189.4 kB / 427.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.2162, allocations: 6.188 kB / 427.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.2162, allocations: 4 kB / 427.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.2162, allocations: 4 kB / 427.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.217e-05/0.2163, allocations: 19.94 kB / 427.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.2163, allocations: 11.92 kB / 427.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.73e-05/0.2164, allocations: 19.84 kB / 427.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.2164, allocations: 15.94 kB / 427.3 MB, free: 12.88 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.0001683/0.2166, allocations: 173.7 kB / 427.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.279e-05/0.2166, allocations: 19.75 kB / 427.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.2166, allocations: 17.39 kB / 427.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2166, allocations: 0 / 427.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2166, allocations: 3.938 kB / 427.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.2167, allocations: 0 / 427.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/0.217, allocations: 438.3 kB / 427.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.217, allocations: 3.938 kB / 427.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.157e-06/0.217, allocations: 4 kB / 427.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.217, allocations: 3.938 kB / 427.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.217, allocations: 0 / 427.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.217, allocations: 0 / 427.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.217, allocations: 4 kB / 428 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.2172, allocations: 212.3 kB / 428.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.544e-05/0.2172, allocations: 96.83 kB / 428.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.2173, allocations: 11.98 kB / 428.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.493e-05/0.2173, allocations: 0 / 428.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.779e-05/0.2174, allocations: 7.938 kB / 428.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.2174, allocations: 7.984 kB / 428.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.241e-05/0.2174, allocations: 128.8 kB / 428.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2175, allocations: 4 kB / 428.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002941/0.2178, allocations: 47.78 kB / 428.5 MB, free: 11.62 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.000619/0.2184, allocations: 262.1 kB / 428.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001852/0.2186, allocations: 103.8 kB / 428.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2186, allocations: 0.75 kB / 428.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.173e-05/0.2186, allocations: 31.98 kB / 428.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.2189, allocations: 16 kB / 428.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000471/0.2194, allocations: 333.9 kB / 429.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001446/0.2195, allocations: 0.7358 MB / 429.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.2196, allocations: 19.44 kB / 429.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.2196, allocations: 4 kB / 429.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of Templates: time 0.003756/0.2233, allocations: 2.35 MB / 432.3 MB, free: 7.789 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)