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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 240.3 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 101.4 kB / 290.6 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05295/0.05295, allocations: 12.02 MB / 352.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009982/0.0009985, allocations: 58.97 kB / 415.8 MB, free: 53.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1035, allocations: 52.31 MB / 468.2 MB, free: 1.547 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.006189/0.1098, allocations: 2.777 MB / 470.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.1116, allocations: 0.6466 MB / 471.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.1117, allocations: 3.938 kB / 471.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003776/0.1122, allocations: 47.72 kB / 471.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.1123, allocations: 19.86 kB / 471.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.1128, allocations: 113.1 kB / 471.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003042/0.1131, allocations: 180 kB / 471.9 MB, free: 13.74 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003023/0.1134, allocations: 100 kB / 472 MB, free: 13.64 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.1136, allocations: 67.7 kB / 472.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.1138, allocations: 75.62 kB / 472.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.492e-05/0.1139, allocations: 8 kB / 472.2 MB, free: 13.49 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.114, allocations: 35.97 kB / 472.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.701e-05/0.1141, allocations: 43.84 kB / 472.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.1142, allocations: 83.47 kB / 472.3 MB, free: 13.33 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003533/0.1146, allocations: 207.6 kB / 472.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1146, allocations: 0 / 472.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1146, allocations: 0 / 472.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.1147, allocations: 0 / 472.5 MB, free: 13.13 MB / 314.7 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.0008622/0.1155, allocations: 486.7 kB / 473 MB, free: 12.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.1156, allocations: 8.031 kB / 473 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.016e-05/0.1157, allocations: 20.75 kB / 473.1 MB, free: 12.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003578/0.1161, allocations: 235.9 kB / 473.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.1161, allocations: 16.38 kB / 473.3 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.1162, allocations: 20.36 kB / 473.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.1166, allocations: 193.4 kB / 473.5 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.1167, allocations: 0 / 473.5 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.1167, allocations: 11.94 kB / 473.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.1167, allocations: 7.984 kB / 473.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.117, allocations: 87.89 kB / 473.6 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.1181, allocations: 0.5703 MB / 474.2 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.1183, allocations: 73.14 kB / 474.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.843e-05/0.1184, allocations: 25.86 kB / 474.3 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.1184, allocations: 7.984 kB / 474.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002793/0.1187, allocations: 93 kB / 474.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.1187, allocations: 4 kB / 474.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003866/0.1191, allocations: 133.5 kB / 474.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.513e-05/0.1192, allocations: 85.05 kB / 474.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002505/0.1195, allocations: 183.8 kB / 474.8 MB, free: 10.67 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.1195, allocations: 33.7 kB / 474.8 MB, free: 10.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1197, allocations: 144.1 kB / 474.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.1197, allocations: 23.78 kB / 475 MB, free: 10.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.1198, allocations: 45.61 kB / 475 MB, free: 10.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.12, allocations: 327 kB / 475.3 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.779e-05/0.1201, allocations: 27.98 kB / 475.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.1203, allocations: 111.9 kB / 475.5 MB, free: 9.902 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004131/0.1207, allocations: 198.9 kB / 475.7 MB, free: 9.668 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.1207, allocations: 0 / 475.7 MB, free: 9.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004623/0.1212, allocations: 185.2 kB / 475.8 MB, free: 9.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.1213, allocations: 4 kB / 475.9 MB, free: 9.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.1213, allocations: 4.375 kB / 475.9 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.959e-05/0.1213, allocations: 12 kB / 475.9 MB, free: 9.461 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.1215, allocations: 27.86 kB / 475.9 MB, free: 9.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.539e-05/0.1215, allocations: 11.88 kB / 475.9 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.1217, allocations: 11.91 kB / 475.9 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.1217, allocations: 8 kB / 475.9 MB, free: 9.402 MB / 314.7 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.0003652/0.1221, allocations: 189.9 kB / 476.1 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.15e-05/0.1221, allocations: 23.69 kB / 476.1 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.1222, allocations: 13.39 kB / 476.1 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1222, allocations: 4 kB / 476.2 MB, free: 9.176 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.1222, allocations: 3.938 kB / 476.2 MB, free: 9.172 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1222, allocations: 0 / 476.2 MB, free: 9.172 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006763/0.1229, allocations: 426.3 kB / 476.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1229, allocations: 0 / 476.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.308e-05/0.123, allocations: 7.984 kB / 476.6 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.123, allocations: 7.938 kB / 476.6 MB, free: 8.684 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.123, allocations: 4 kB / 476.6 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.123, allocations: 0 / 476.6 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.123, allocations: 0 / 476.6 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007289/0.1238, allocations: 0.8065 MB / 477.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.954e-05/0.1238, allocations: 85.02 kB / 477.5 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.1239, allocations: 4 kB / 477.5 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.124, allocations: 4 kB / 477.5 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.1241, allocations: 3.984 kB / 477.5 MB, free: 7.699 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.1241, allocations: 8 kB / 477.5 MB, free: 7.691 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001482/0.1243, allocations: 115.2 kB / 477.6 MB, free: 7.578 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1243, allocations: 4 kB / 477.6 MB, free: 7.574 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007351/0.1251, allocations: 55.77 kB / 477.7 MB, free: 7.52 MB / 314.7 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.0008566/0.1259, allocations: 265 kB / 477.9 MB, free: 7.316 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002727/0.1262, allocations: 95.84 kB / 478 MB, free: 7.223 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1262, allocations: 0 / 478 MB, free: 7.223 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.512e-05/0.1263, allocations: 31.94 kB / 478.1 MB, free: 7.191 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003883/0.1267, allocations: 16.73 kB / 478.1 MB, free: 7.176 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009548/0.1277, allocations: 0.4969 MB / 478.6 MB, free: 6.641 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.1281, allocations: 0.7361 MB / 479.3 MB, free: 5.879 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.805e-05/0.1282, allocations: 21.41 kB / 479.3 MB, free: 5.855 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.438e-05/0.1282, allocations: 15.44 kB / 479.3 MB, free: 5.84 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1282, allocations: 3.938 kB / 479.3 MB, free: 5.836 MB / 314.7 MB Notification: Performance of Templates: time 0.005112/0.1334, allocations: 1.511 MB / 480.9 MB, free: 4.336 MB / 314.7 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)