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.001154/0.001154, allocations: 107.8 kB / 17.07 MB, free: 5.68 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.0012/0.0012, allocations: 194.9 kB / 18.01 MB, free: 5.02 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.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.08 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.05768/0.05768, allocations: 12.04 MB / 303.9 MB, free: 3.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 59.91 kB / 367.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2047, allocations: 52.32 MB / 420.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.003872/0.2086, allocations: 2.75 MB / 423 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009581/0.2096, allocations: 0.6583 MB / 423.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.2098, allocations: 7.938 kB / 423.7 MB, free: 17.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002359/0.21, allocations: 54.25 kB / 423.7 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001295/0.2102, allocations: 31.72 kB / 423.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.2105, allocations: 119.7 kB / 423.9 MB, free: 17.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.2107, allocations: 187.9 kB / 424 MB, free: 17.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.2109, allocations: 112 kB / 424.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.47e-05/0.211, allocations: 79.69 kB / 424.2 MB, free: 16.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.483e-05/0.2111, allocations: 79.62 kB / 424.3 MB, free: 16.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.2111, allocations: 16 kB / 424.3 MB, free: 16.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.573e-05/0.2112, allocations: 35.98 kB / 424.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.177e-05/0.2112, allocations: 55.78 kB / 424.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.897e-05/0.2113, allocations: 79.53 kB / 424.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.2116, allocations: 232.8 kB / 424.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2116, allocations: 0 / 424.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2116, allocations: 0 / 424.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.2116, allocations: 3.938 kB / 424.7 MB, free: 16.45 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.0004757/0.2121, allocations: 486.7 kB / 425.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.2121, allocations: 12.03 kB / 425.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.392e-05/0.2122, allocations: 20.73 kB / 425.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.2124, allocations: 240.6 kB / 425.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.2124, allocations: 12.38 kB / 425.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.2124, allocations: 12.38 kB / 425.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.2127, allocations: 189.5 kB / 425.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.2127, allocations: 3.938 kB / 425.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.2127, allocations: 15.94 kB / 425.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.2128, allocations: 4 kB / 425.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.2129, allocations: 87.81 kB / 425.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006662/0.2136, allocations: 0.5587 MB / 426.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.471e-05/0.2137, allocations: 69.14 kB / 426.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.63e-05/0.2137, allocations: 33.77 kB / 426.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.2137, allocations: 4.062 kB / 426.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.2139, allocations: 92.95 kB / 426.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.2139, allocations: 0 / 426.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002678/0.2142, allocations: 137.5 kB / 426.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.2143, allocations: 93.03 kB / 426.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.2144, allocations: 166.3 kB / 426.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.2144, allocations: 33.69 kB / 427 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/0.2145, allocations: 144.1 kB / 427.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.2145, allocations: 27.73 kB / 427.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.176e-05/0.2146, allocations: 45.61 kB / 427.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.293e-05/0.2146, allocations: 326.9 kB / 427.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.11e-05/0.2147, allocations: 24 kB / 427.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.004e-05/0.2147, allocations: 115.9 kB / 427.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.2149, allocations: 187 kB / 427.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.215, allocations: 8 kB / 427.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002283/0.2152, allocations: 185.2 kB / 428 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.2152, allocations: 15.92 kB / 428 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2152, allocations: 0 / 428 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.2153, allocations: 8 kB / 428 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.668e-05/0.2153, allocations: 16.66 kB / 428 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.2154, allocations: 19.86 kB / 428 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.031e-05/0.2154, allocations: 23.78 kB / 428.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.2154, allocations: 11.94 kB / 428.1 MB, free: 12.73 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.0001716/0.2156, allocations: 170.5 kB / 428.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.121e-05/0.2157, allocations: 19.81 kB / 428.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.268e-05/0.2157, allocations: 17.39 kB / 428.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2157, allocations: 0 / 428.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.2157, allocations: 3.938 kB / 428.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.748e-06/0.2157, allocations: 4 kB / 428.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003503/0.2161, allocations: 426.4 kB / 428.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2161, allocations: 0 / 428.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.046e-05/0.2161, allocations: 4 kB / 428.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.2161, allocations: 3.938 kB / 428.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2161, allocations: 4 kB / 428.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2161, allocations: 4 kB / 428.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2161, allocations: 0 / 428.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001772/0.2163, allocations: 216.2 kB / 428.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.82e-05/0.2164, allocations: 92.86 kB / 429 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.2164, allocations: 3.984 kB / 429 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.725e-05/0.2165, allocations: 0 / 429 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.2165, allocations: 12 kB / 429 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.2165, allocations: 7.984 kB / 429.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.324e-05/0.2166, allocations: 128.8 kB / 429.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2166, allocations: 0 / 429.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003245/0.217, allocations: 47.78 kB / 429.2 MB, free: 11.49 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.0005982/0.2176, allocations: 272.6 kB / 429.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002096/0.2178, allocations: 103.8 kB / 429.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2178, allocations: 0 / 429.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.46e-05/0.2179, allocations: 31.98 kB / 429.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.2181, allocations: 12.09 kB / 429.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005424/0.2187, allocations: 307.4 kB / 429.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.2189, allocations: 0.7397 MB / 430.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.673e-05/0.219, allocations: 17.42 kB / 430.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.219, allocations: 15.44 kB / 430.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.219, allocations: 0 / 430.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Templates: time 0.003982/0.223, allocations: 1.491 MB / 432.2 MB, free: 8.531 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 -s gbode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe 2>&1)