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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00161/0.001611, allocations: 106.6 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.001766/0.001766, allocations: 192.2 kB / 17.39 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.397/1.397, allocations: 222.9 MB / 241.1 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.05774/0.05774, allocations: 12.05 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 71.89 kB / 419.6 MB, free: 17.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09522/0.09636, allocations: 52.32 MB / 471.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004171/0.1006, allocations: 2.734 MB / 474.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.1017, allocations: 0.6738 MB / 475.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.1019, allocations: 3.938 kB / 475.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003182/0.1023, allocations: 63.5 kB / 475.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.1025, allocations: 27.78 kB / 475.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004271/0.1029, allocations: 118.7 kB / 475.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.1032, allocations: 184 kB / 475.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.1035, allocations: 116 kB / 475.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.1036, allocations: 75.69 kB / 475.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.1038, allocations: 83.52 kB / 476 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.705e-05/0.1039, allocations: 16 kB / 476 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.104, allocations: 39.98 kB / 476 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.092e-05/0.1041, allocations: 55.83 kB / 476.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1042, allocations: 79.53 kB / 476.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000383/0.1046, allocations: 230.6 kB / 476.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1046, allocations: 0 / 476.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1046, allocations: 0 / 476.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1046, allocations: 4 kB / 476.4 MB, free: 8.945 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.0007852/0.1054, allocations: 486.7 kB / 476.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1055, allocations: 12.03 kB / 476.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.273e-05/0.1055, allocations: 50.73 kB / 476.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.369e-05/0.1056, allocations: 28.64 kB / 476.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.1059, allocations: 239.9 kB / 477.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.106, allocations: 8.375 kB / 477.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.106, allocations: 16.38 kB / 477.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003281/0.1063, allocations: 201.2 kB / 477.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1063, allocations: 0 / 477.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.1064, allocations: 4 kB / 477.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.1064, allocations: 4 kB / 477.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.1066, allocations: 87.81 kB / 477.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007586/0.1073, allocations: 0.5742 MB / 478.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.1075, allocations: 65.2 kB / 478.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.695e-05/0.1076, allocations: 29.77 kB / 478.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.1076, allocations: 4 kB / 478.2 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.1078, allocations: 97.11 kB / 478.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.1078, allocations: 0 / 478.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002826/0.1081, allocations: 129.5 kB / 478.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.1082, allocations: 93.03 kB / 478.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.1084, allocations: 174.8 kB / 478.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.1084, allocations: 29.7 kB / 478.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.1085, allocations: 140.1 kB / 478.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.1085, allocations: 35.77 kB / 478.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/0.1086, allocations: 45.64 kB / 478.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1087, allocations: 327.1 kB / 479.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.617e-05/0.1088, allocations: 20 kB / 479.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.1089, allocations: 121.6 kB / 479.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.1092, allocations: 194.9 kB / 479.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1092, allocations: 0 / 479.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002746/0.1095, allocations: 189.5 kB / 479.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1095, allocations: 15.97 kB / 479.7 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.1095, allocations: 4 kB / 479.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.1095, allocations: 4 kB / 479.7 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.1097, allocations: 23.88 kB / 479.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.1097, allocations: 7.984 kB / 479.8 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.392e-05/0.1098, allocations: 15.84 kB / 479.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.1098, allocations: 8.078 kB / 479.8 MB, free: 5.164 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.0002206/0.11, allocations: 182.3 kB / 480 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.315e-05/0.11, allocations: 7.906 kB / 480 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.135e-05/0.1101, allocations: 21.39 kB / 480 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1101, allocations: 7.938 kB / 480 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1101, allocations: 0 / 480 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1101, allocations: 0 / 480 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005372/0.1107, allocations: 434.3 kB / 480.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1107, allocations: 4 kB / 480.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.074e-05/0.1107, allocations: 3.938 kB / 480.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1107, allocations: 0 / 480.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.1107, allocations: 4 kB / 480.4 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.1107, allocations: 3.938 kB / 480.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1107, allocations: 0 / 480.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.1109, allocations: 216.1 kB / 480.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.991e-05/0.111, allocations: 92.95 kB / 480.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.111, allocations: 3.984 kB / 480.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.933e-05/0.1111, allocations: 8 kB / 480.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.207e-05/0.1111, allocations: 0 / 480.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.1112, allocations: 15.92 kB / 480.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.1113, allocations: 123.2 kB / 480.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1113, allocations: 0 / 480.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.1116, allocations: 39.84 kB / 480.9 MB, free: 3.926 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.001046/0.1127, allocations: 0.9248 MB / 481.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002234/0.1129, allocations: 100.3 kB / 482 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1129, allocations: 8.25 kB / 482 MB, free: 2.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.944e-05/0.113, allocations: 31.97 kB / 482 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.1133, allocations: 11.94 kB / 482 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.1156, allocations: 1.966 MB / 484 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.1159, allocations: 0.7319 MB / 484.7 MB, free: 8 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.277e-05/0.116, allocations: 17.42 kB / 484.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.814e-05/0.1161, allocations: 55.42 kB / 484.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1161, allocations: 0 / 484.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.1398, allocations: 3.511 MB / 488.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.349/7.489, allocations: 22.84 kB / 488.3 MB, free: 12.51 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe 2>&1)