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.001432/0.001432, allocations: 105.3 kB / 16.45 MB, free: 6.449 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.001585/0.001585, allocations: 186.4 kB / 17.38 MB, free: 5.668 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.387/1.387, allocations: 222.9 MB / 241.1 MB, free: 15.06 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.05598/0.05598, allocations: 12.05 MB / 303.3 MB, free: 3.078 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 63.91 kB / 420.1 MB, free: 17.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08906/0.09025, allocations: 52.32 MB / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.003824/0.0941, allocations: 2.738 MB / 475.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009071/0.09502, allocations: 0.6621 MB / 475.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.166e-05/0.09512, allocations: 7.938 kB / 475.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.09534, allocations: 63.56 kB / 475.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.502e-05/0.09545, allocations: 19.75 kB / 475.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002787/0.09574, allocations: 127.6 kB / 476 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.09596, allocations: 184 kB / 476.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.09615, allocations: 116 kB / 476.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.963e-05/0.09624, allocations: 75.7 kB / 476.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.09636, allocations: 83.55 kB / 476.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/0.0964, allocations: 16 kB / 476.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.081e-05/0.09649, allocations: 51.92 kB / 476.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.637e-05/0.09658, allocations: 47.83 kB / 476.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.301e-05/0.09666, allocations: 83.55 kB / 476.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003018/0.09697, allocations: 223 kB / 476.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.09698, allocations: 0 / 476.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09699, allocations: 0 / 476.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.09701, allocations: 0 / 476.9 MB, free: 8.324 MB / 350.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.0005797/0.09759, allocations: 0.4903 MB / 477.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.09763, allocations: 8.031 kB / 477.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.235e-05/0.09769, allocations: 24.8 kB / 477.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.09793, allocations: 244 kB / 477.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.09796, allocations: 12.38 kB / 477.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.09799, allocations: 16.31 kB / 477.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003088/0.09831, allocations: 193.4 kB / 477.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.09833, allocations: 0 / 477.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.09835, allocations: 7.984 kB / 477.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.09837, allocations: 4 kB / 477.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.09852, allocations: 95.81 kB / 477.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007165/0.09924, allocations: 0.5667 MB / 478.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.09936, allocations: 65.14 kB / 478.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.342e-05/0.09941, allocations: 29.78 kB / 478.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.09944, allocations: 4 kB / 478.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001706/0.09961, allocations: 97.03 kB / 478.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.09962, allocations: 0 / 478.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002619/0.09989, allocations: 129.5 kB / 478.8 MB, free: 6.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.09996, allocations: 93.11 kB / 478.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.1001, allocations: 178.9 kB / 479.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.1002, allocations: 33.7 kB / 479.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.668e-05/0.1003, allocations: 144.3 kB / 479.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.1003, allocations: 23.84 kB / 479.3 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.926e-05/0.1004, allocations: 41.7 kB / 479.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1005, allocations: 326.8 kB / 479.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.29e-05/0.1005, allocations: 19.98 kB / 479.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.1006, allocations: 116 kB / 479.8 MB, free: 5.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002482/0.1009, allocations: 199.2 kB / 480 MB, free: 4.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1009, allocations: 0 / 480 MB, free: 4.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003016/0.1012, allocations: 197.2 kB / 480.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.1012, allocations: 7.938 kB / 480.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1013, allocations: 4 kB / 480.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.1013, allocations: 7.938 kB / 480.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.306e-05/0.1014, allocations: 23.92 kB / 480.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1014, allocations: 7.938 kB / 480.2 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.665e-05/0.1014, allocations: 12.33 kB / 480.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.1015, allocations: 12 kB / 480.2 MB, free: 4.59 MB / 350.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.0001983/0.1017, allocations: 183.5 kB / 480.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/0.1017, allocations: 15.91 kB / 480.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.242e-05/0.1017, allocations: 13.41 kB / 480.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1017, allocations: 4 kB / 480.5 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.1018, allocations: 7.922 kB / 480.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1018, allocations: 0 / 480.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.1022, allocations: 430.4 kB / 480.9 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1022, allocations: 0 / 480.9 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.804e-06/0.1022, allocations: 0 / 480.9 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1022, allocations: 7.938 kB / 480.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1022, allocations: 3.984 kB / 480.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1022, allocations: 0 / 480.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1022, allocations: 4 kB / 480.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001816/0.1024, allocations: 220.2 kB / 481.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.986e-05/0.1025, allocations: 92.94 kB / 481.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.1025, allocations: 4 kB / 481.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.771e-05/0.1026, allocations: 4 kB / 481.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.144e-05/0.1026, allocations: 7.984 kB / 481.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.1026, allocations: 4 kB / 481.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.281e-05/0.1027, allocations: 128.2 kB / 481.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1027, allocations: 0 / 481.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.103, allocations: 55.75 kB / 481.4 MB, free: 3.336 MB / 350.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.0004694/0.1035, allocations: 260.9 kB / 481.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001827/0.1037, allocations: 100.3 kB / 481.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1037, allocations: 8.188 kB / 481.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.955e-05/0.1038, allocations: 27.94 kB / 481.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.104, allocations: 11.98 kB / 481.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004568/0.1045, allocations: 307.8 kB / 482.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1048, allocations: 0.7397 MB / 482.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.664e-05/0.1048, allocations: 21.41 kB / 482.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.489e-05/0.1049, allocations: 15.44 kB / 482.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1049, allocations: 0 / 482.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of Templates: time 0.004012/0.1089, allocations: 1.508 MB / 484.4 MB, free: 376 kB / 350.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)