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.001137/0.001136, allocations: 106.8 kB / 16.45 MB, free: 6.395 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.001178/0.001178, allocations: 189.4 kB / 17.39 MB, free: 5.645 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.398/1.398, 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.05939/0.05939, allocations: 12.04 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.91 kB / 420.1 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09589, allocations: 52.31 MB / 472.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.00475/0.1007, allocations: 2.746 MB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1019, allocations: 0.666 MB / 475.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.1022, allocations: 7.938 kB / 475.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002786/0.1025, allocations: 51.58 kB / 475.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.1026, allocations: 27.73 kB / 475.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003991/0.103, allocations: 127.6 kB / 476 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.1033, allocations: 184 kB / 476.2 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.1036, allocations: 116 kB / 476.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.1037, allocations: 71.66 kB / 476.4 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001494/0.1039, allocations: 83.61 kB / 476.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.104, allocations: 16 kB / 476.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.1041, allocations: 35.98 kB / 476.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.005e-05/0.1042, allocations: 47.84 kB / 476.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.1043, allocations: 91.52 kB / 476.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003734/0.1047, allocations: 215.2 kB / 476.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1047, allocations: 4 kB / 476.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1047, allocations: 7.938 kB / 476.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1047, allocations: 0 / 476.8 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.0008377/0.1056, allocations: 494.4 kB / 477.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1056, allocations: 12.03 kB / 477.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.734e-05/0.1057, allocations: 16.75 kB / 477.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.106, allocations: 236 kB / 477.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.106, allocations: 12.38 kB / 477.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.1061, allocations: 20.25 kB / 477.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003671/0.1064, allocations: 197.5 kB / 477.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.1065, allocations: 0 / 477.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/0.1065, allocations: 12 kB / 477.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.1065, allocations: 4 kB / 477.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.1067, allocations: 91.75 kB / 477.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008656/0.1076, allocations: 0.5742 MB / 478.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.1077, allocations: 61.2 kB / 478.6 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.667e-05/0.1078, allocations: 37.7 kB / 478.6 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1078, allocations: 4 kB / 478.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000204/0.108, allocations: 97.03 kB / 478.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.108, allocations: 0 / 478.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002895/0.1083, allocations: 129.5 kB / 478.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.1084, allocations: 92.98 kB / 478.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.1085, allocations: 174.8 kB / 479.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.1086, allocations: 29.7 kB / 479.1 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.819e-05/0.1087, allocations: 152.3 kB / 479.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.1087, allocations: 19.8 kB / 479.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/0.1088, allocations: 45.61 kB / 479.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1089, allocations: 326.8 kB / 479.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.001e-05/0.109, allocations: 23.98 kB / 479.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.1091, allocations: 116 kB / 479.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.1093, allocations: 194.9 kB / 480 MB, free: 4.887 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.1094, allocations: 4 kB / 480 MB, free: 4.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002632/0.1096, allocations: 185.5 kB / 480.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1096, allocations: 8 kB / 480.2 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1097, allocations: 4 kB / 480.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.1097, allocations: 8.219 kB / 480.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.857e-05/0.1098, allocations: 19.92 kB / 480.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.744e-05/0.1098, allocations: 7.938 kB / 480.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.922e-05/0.1099, allocations: 23.78 kB / 480.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.1099, allocations: 12 kB / 480.2 MB, free: 4.613 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.0002201/0.1101, allocations: 173.8 kB / 480.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.1102, allocations: 11.81 kB / 480.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.602e-05/0.1102, allocations: 17.39 kB / 480.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1102, allocations: 0 / 480.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.1102, allocations: 7.938 kB / 480.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1102, allocations: 0 / 480.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000492/0.1107, allocations: 434.3 kB / 480.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1108, allocations: 0 / 480.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.377e-05/0.1108, allocations: 11.92 kB / 480.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.1108, allocations: 3.938 kB / 480.9 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.1108, allocations: 4.047 kB / 480.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1108, allocations: 0 / 480.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1108, allocations: 3.984 kB / 480.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.1111, allocations: 216.2 kB / 481.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.1111, allocations: 92.86 kB / 481.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.1111, allocations: 4 kB / 481.2 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.029e-05/0.1112, allocations: 0 / 481.2 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.1113, allocations: 7.984 kB / 481.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.1113, allocations: 4 kB / 481.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001107/0.1114, allocations: 132.2 kB / 481.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1114, allocations: 0 / 481.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003421/0.1117, allocations: 51.84 kB / 481.4 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.0005462/0.1123, allocations: 267 kB / 481.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002055/0.1125, allocations: 95.84 kB / 481.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1125, allocations: 0 / 481.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.72e-05/0.1126, allocations: 32.67 kB / 481.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.1129, allocations: 16 kB / 481.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005363/0.1134, allocations: 304.2 kB / 482.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.1137, allocations: 0.7318 MB / 482.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.574e-05/0.1138, allocations: 25.41 kB / 482.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.004e-05/0.1138, allocations: 15.44 kB / 482.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1138, allocations: 0 / 482.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of Templates: time 0.004688/0.1185, allocations: 1.509 MB / 484.4 MB, free: 416 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)