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.001515/0.001515, allocations: 108.9 kB / 16.69 MB, free: 6.273 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.001629/0.001629, allocations: 192.2 kB / 17.61 MB, free: 5.734 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.376/1.376, allocations: 222.9 MB / 241.3 MB, free: 15.45 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.05905/0.05905, allocations: 12.03 MB / 303.5 MB, free: 3.398 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.84 kB / 366.6 MB, free: 4.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2064, allocations: 52.31 MB / 418.9 MB, free: 21.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.00353/0.2099, allocations: 2.776 MB / 421.7 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000735/0.2107, allocations: 0.6428 MB / 422.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.641e-05/0.2108, allocations: 11.88 kB / 422.4 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.2111, allocations: 55.69 kB / 422.4 MB, free: 17.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.043e-05/0.2112, allocations: 15.88 kB / 422.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.2114, allocations: 111.7 kB / 422.5 MB, free: 17.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.2116, allocations: 176 kB / 422.7 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.2118, allocations: 120 kB / 422.8 MB, free: 17.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.13e-05/0.2118, allocations: 67.72 kB / 422.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.767e-05/0.2119, allocations: 87.61 kB / 423 MB, free: 17.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.212, allocations: 12 kB / 423 MB, free: 17.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.518e-05/0.212, allocations: 39.98 kB / 423 MB, free: 17.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.132e-05/0.2121, allocations: 55.84 kB / 423.1 MB, free: 17.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.681e-05/0.2122, allocations: 87.47 kB / 423.2 MB, free: 17.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.2124, allocations: 165.6 kB / 423.3 MB, free: 16.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2124, allocations: 4 kB / 423.3 MB, free: 16.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2124, allocations: 0 / 423.3 MB, free: 16.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.2124, allocations: 0 / 423.3 MB, free: 16.89 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.0004881/0.2129, allocations: 482.7 kB / 423.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2129, allocations: 12.03 kB / 423.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.208e-05/0.213, allocations: 16.75 kB / 423.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.2132, allocations: 247 kB / 424.1 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.2132, allocations: 12.38 kB / 424.1 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.2132, allocations: 16.38 kB / 424.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.2135, allocations: 185.5 kB / 424.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.2135, allocations: 7.938 kB / 424.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.2135, allocations: 7.984 kB / 424.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.2136, allocations: 4 kB / 424.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.2137, allocations: 91.75 kB / 424.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005701/0.2143, allocations: 0.5743 MB / 425 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.455e-05/0.2144, allocations: 69.14 kB / 425 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.426e-05/0.2144, allocations: 29.78 kB / 425.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.2144, allocations: 0 / 425.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001667/0.2146, allocations: 93.09 kB / 425.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.2146, allocations: 0 / 425.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002442/0.2149, allocations: 145.3 kB / 425.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.2149, allocations: 85.05 kB / 425.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.215, allocations: 179.3 kB / 425.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.215, allocations: 29.7 kB / 425.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.637e-05/0.2151, allocations: 148.1 kB / 425.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.2151, allocations: 27.73 kB / 425.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.2152, allocations: 45.83 kB / 425.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.355e-05/0.2152, allocations: 322.8 kB / 426.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.878e-05/0.2153, allocations: 23.98 kB / 426.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.771e-05/0.2154, allocations: 130 kB / 426.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.2155, allocations: 191 kB / 426.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2155, allocations: 0 / 426.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001995/0.2158, allocations: 185.2 kB / 426.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2158, allocations: 8.375 kB / 426.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.2158, allocations: 4 kB / 426.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.2158, allocations: 4 kB / 426.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.248e-05/0.2159, allocations: 23.92 kB / 426.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.2159, allocations: 11.88 kB / 426.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.259e-05/0.216, allocations: 15.84 kB / 426.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.216, allocations: 8 kB / 426.7 MB, free: 13.17 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.0001621/0.2161, allocations: 199 kB / 426.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/0.2162, allocations: 15.81 kB / 426.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.2162, allocations: 17.39 kB / 426.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2162, allocations: 0 / 426.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2162, allocations: 3.938 kB / 426.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2162, allocations: 4 kB / 426.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003098/0.2165, allocations: 430.4 kB / 427.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2166, allocations: 0 / 427.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.107e-06/0.2166, allocations: 7.984 kB / 427.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2166, allocations: 3.938 kB / 427.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.2166, allocations: 3.938 kB / 427.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.2166, allocations: 4 kB / 427.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2166, allocations: 0 / 427.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.2167, allocations: 216.2 kB / 427.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.42e-05/0.2168, allocations: 92.86 kB / 427.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.2168, allocations: 0 / 427.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.715e-05/0.2169, allocations: 0 / 427.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.24e-05/0.2169, allocations: 11.98 kB / 427.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.2169, allocations: 8 kB / 427.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.919e-05/0.217, allocations: 123.2 kB / 427.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.217, allocations: 0 / 427.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002902/0.2173, allocations: 51.77 kB / 427.9 MB, free: 11.91 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.0004526/0.2178, allocations: 266.2 kB / 428.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001717/0.2179, allocations: 99.78 kB / 428.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2179, allocations: 0 / 428.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.02e-05/0.218, allocations: 35.98 kB / 428.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.2183, allocations: 8.812 kB / 428.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004988/0.2188, allocations: 409.9 kB / 428.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001531/0.2189, allocations: 0.7319 MB / 429.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.571e-05/0.219, allocations: 15.44 kB / 429.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.219, allocations: 4 kB / 429.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of Templates: time 0.003407/0.2224, allocations: 2.349 MB / 431.8 MB, free: 8.012 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)