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.001053/0.001053, allocations: 122.3 kB / 17.14 MB, free: 5.914 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.0009851/0.0009851, allocations: 190.3 kB / 18.06 MB, free: 5 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.32/1.32, allocations: 222.9 MB / 241.8 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.0559/0.0559, allocations: 12.04 MB / 304 MB, free: 3.078 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.91 kB / 420.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09291/0.09411, allocations: 52.3 MB / 473 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004801/0.09895, allocations: 2.742 MB / 475.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.1002, allocations: 0.6699 MB / 476.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.1004, allocations: 11.88 kB / 476.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003023/0.1007, allocations: 59.56 kB / 476.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.1009, allocations: 31.78 kB / 476.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.1013, allocations: 111.4 kB / 476.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002753/0.1016, allocations: 192 kB / 476.9 MB, free: 9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.1018, allocations: 108 kB / 477 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.102, allocations: 75.64 kB / 477 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.1021, allocations: 83.62 kB / 477.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.223e-05/0.1022, allocations: 20 kB / 477.1 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.1023, allocations: 35.98 kB / 477.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.078e-05/0.1024, allocations: 47.83 kB / 477.2 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.38e-05/0.1025, allocations: 87.53 kB / 477.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003465/0.1028, allocations: 223.2 kB / 477.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1028, allocations: 4 kB / 477.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1029, allocations: 0 / 477.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.1029, allocations: 0 / 477.5 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.0007164/0.1036, allocations: 494.3 kB / 478 MB, free: 7.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1036, allocations: 8.031 kB / 478 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.274e-05/0.1037, allocations: 24.75 kB / 478 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.104, allocations: 239.9 kB / 478.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.1041, allocations: 8.375 kB / 478.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.1041, allocations: 20.36 kB / 478.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000345/0.1045, allocations: 193.4 kB / 478.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1045, allocations: 3.984 kB / 478.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.1045, allocations: 8 kB / 478.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.1045, allocations: 8 kB / 478.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.1047, allocations: 95.75 kB / 478.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008135/0.1055, allocations: 0.5664 MB / 479.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.1056, allocations: 65.14 kB / 479.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.76e-05/0.1057, allocations: 29.78 kB / 479.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.1057, allocations: 8 kB / 479.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000187/0.1059, allocations: 97.09 kB / 479.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.1059, allocations: 0 / 479.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002954/0.1062, allocations: 129.5 kB / 479.5 MB, free: 6.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.1063, allocations: 93.17 kB / 479.6 MB, free: 6.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.1065, allocations: 174.8 kB / 479.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.1065, allocations: 33.7 kB / 479.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.766e-05/0.1066, allocations: 144.1 kB / 479.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.1066, allocations: 23.78 kB / 480 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.284e-05/0.1067, allocations: 45.61 kB / 480 MB, free: 5.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1068, allocations: 326.8 kB / 480.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.707e-05/0.1069, allocations: 23.98 kB / 480.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.107, allocations: 115.8 kB / 480.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.1073, allocations: 198.9 kB / 480.6 MB, free: 4.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1073, allocations: 4 kB / 480.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002764/0.1076, allocations: 185.2 kB / 480.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1076, allocations: 7.938 kB / 480.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.1076, allocations: 4 kB / 480.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1076, allocations: 4 kB / 480.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.19e-05/0.1077, allocations: 23.92 kB / 480.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.1077, allocations: 8.312 kB / 480.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.279e-05/0.1078, allocations: 19.84 kB / 480.9 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.1078, allocations: 12 kB / 480.9 MB, free: 4.594 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.0002171/0.1081, allocations: 177.6 kB / 481.1 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.1081, allocations: 15.81 kB / 481.1 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.49e-05/0.1081, allocations: 25.39 kB / 481.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1081, allocations: 0 / 481.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1082, allocations: 3.938 kB / 481.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1082, allocations: 0 / 481.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004556/0.1086, allocations: 430.2 kB / 481.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1086, allocations: 0 / 481.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.169e-05/0.1086, allocations: 3.984 kB / 481.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1087, allocations: 7.938 kB / 481.6 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.1087, allocations: 0 / 481.6 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1087, allocations: 4 kB / 481.6 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1087, allocations: 0 / 481.6 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.1089, allocations: 212.2 kB / 481.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.582e-05/0.109, allocations: 92.86 kB / 481.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.109, allocations: 8 kB / 481.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.808e-05/0.1091, allocations: 0 / 481.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.064e-05/0.1091, allocations: 11.92 kB / 481.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.1091, allocations: 12 kB / 481.9 MB, free: 3.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.108e-05/0.1092, allocations: 128.2 kB / 482 MB, free: 3.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1092, allocations: 0 / 482 MB, free: 3.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.1096, allocations: 47.84 kB / 482.1 MB, free: 3.344 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.0005232/0.1101, allocations: 260.6 kB / 482.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000201/0.1103, allocations: 100.3 kB / 482.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1103, allocations: 4 kB / 482.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.786e-05/0.1104, allocations: 31.92 kB / 482.4 MB, free: 3.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.1107, allocations: 12 kB / 482.5 MB, free: 3.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006265/0.1113, allocations: 329.9 kB / 482.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.1117, allocations: 0.7477 MB / 483.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/0.1117, allocations: 15.44 kB / 483.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of SimCode: time 2.073e-06/0.1117, allocations: 0 / 483.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of Templates: time 0.004844/0.1166, allocations: 2.379 MB / 485.9 MB, free: 15.49 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)