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.001255/0.001255, allocations: 120.8 kB / 17.13 MB, free: 5.961 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.001608/0.001608, allocations: 193.2 kB / 18.06 MB, free: 5.039 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.1 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.05867/0.05867, allocations: 12.04 MB / 304 MB, free: 3.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.91 kB / 420.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.09119, allocations: 52.32 MB / 473.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.00432/0.09555, allocations: 2.734 MB / 475.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.0967, allocations: 0.6621 MB / 476.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.09688, allocations: 7.938 kB / 476.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002716/0.09719, allocations: 67.45 kB / 476.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.09735, allocations: 27.78 kB / 476.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003933/0.09775, allocations: 123.4 kB / 476.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.09803, allocations: 184 kB / 476.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.09826, allocations: 108 kB / 477 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.09837, allocations: 71.66 kB / 477 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.09852, allocations: 87.61 kB / 477.1 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.156e-05/0.09857, allocations: 16 kB / 477.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.09869, allocations: 35.98 kB / 477.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-05/0.09877, allocations: 51.84 kB / 477.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.09889, allocations: 95.5 kB / 477.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.09921, allocations: 223.2 kB / 477.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.09923, allocations: 0 / 477.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09923, allocations: 0 / 477.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.056e-06/0.09925, allocations: 0 / 477.5 MB, free: 8.348 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.0006706/0.09992, allocations: 494.4 kB / 478 MB, free: 7.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.09997, allocations: 8.031 kB / 478 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.707e-05/0.1, allocations: 28.73 kB / 478 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002843/0.1003, allocations: 232 kB / 478.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.1004, allocations: 20.31 kB / 478.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.1004, allocations: 24.3 kB / 478.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.1007, allocations: 189.5 kB / 478.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1008, allocations: 0 / 478.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.1008, allocations: 4 kB / 478.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1008, allocations: 4 kB / 478.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.101, allocations: 91.75 kB / 478.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009152/0.1019, allocations: 0.5703 MB / 479.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.1021, allocations: 69.2 kB / 479.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.804e-05/0.1021, allocations: 29.72 kB / 479.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.1022, allocations: 4 kB / 479.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.1024, allocations: 93.09 kB / 479.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.1024, allocations: 0 / 479.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003116/0.1027, allocations: 129.5 kB / 479.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.1028, allocations: 93.05 kB / 479.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.103, allocations: 175.2 kB / 479.8 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.103, allocations: 37.7 kB / 479.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.1032, allocations: 144.1 kB / 479.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.1032, allocations: 23.73 kB / 480 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.379e-05/0.1033, allocations: 45.61 kB / 480 MB, free: 5.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.1035, allocations: 322.8 kB / 480.3 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.11e-05/0.1035, allocations: 27.98 kB / 480.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.1036, allocations: 112 kB / 480.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.104, allocations: 198.9 kB / 480.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.104, allocations: 0 / 480.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002782/0.1043, allocations: 185.2 kB / 480.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.1043, allocations: 4 kB / 480.8 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1043, allocations: 7.938 kB / 480.8 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.1043, allocations: 4 kB / 480.8 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.539e-05/0.1044, allocations: 27.92 kB / 480.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.1045, allocations: 7.938 kB / 480.9 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.873e-05/0.1045, allocations: 15.84 kB / 480.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/0.1046, allocations: 8.344 kB / 480.9 MB, free: 4.629 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.0002311/0.1048, allocations: 185.4 kB / 481.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.85e-05/0.1049, allocations: 15.81 kB / 481.1 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.563e-05/0.1049, allocations: 13.39 kB / 481.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1049, allocations: 4 kB / 481.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1049, allocations: 7.938 kB / 481.1 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.1049, allocations: 0 / 481.1 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000453/0.1054, allocations: 430.3 kB / 481.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1054, allocations: 0 / 481.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.873e-05/0.1054, allocations: 7.922 kB / 481.5 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/0.1054, allocations: 7.938 kB / 481.6 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.1055, allocations: 4 kB / 481.6 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1055, allocations: 0 / 481.6 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1055, allocations: 160 / 481.6 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.1057, allocations: 220.2 kB / 481.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.128e-05/0.1058, allocations: 92.86 kB / 481.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.1058, allocations: 4 kB / 481.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.763e-05/0.1059, allocations: 0 / 481.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.1059, allocations: 7.984 kB / 481.9 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.1059, allocations: 8 kB / 481.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.913e-05/0.106, allocations: 132.2 kB / 482 MB, free: 3.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.106, allocations: 4 kB / 482 MB, free: 3.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.1064, allocations: 43.84 kB / 482.1 MB, free: 3.371 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.0006071/0.107, allocations: 266.7 kB / 482.3 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000198/0.1072, allocations: 92.47 kB / 482.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.1072, allocations: 0 / 482.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.604e-05/0.1073, allocations: 43.98 kB / 482.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.1075, allocations: 16 kB / 482.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005986/0.1082, allocations: 329.9 kB / 482.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.1086, allocations: 0.7436 MB / 483.5 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/0.1086, allocations: 15.44 kB / 483.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1086, allocations: 0 / 483.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of Templates: time 0.004688/0.1133, allocations: 2.362 MB / 485.9 MB, free: 15.53 MB / 366.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)