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.00151/0.00151, allocations: 103.2 kB / 16.45 MB, free: 6.43 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.001812/0.001812, allocations: 189.5 kB / 17.39 MB, free: 5.676 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.309/1.309, allocations: 222.9 MB / 241.1 MB, free: 15.08 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.05734/0.05734, allocations: 12.04 MB / 303.3 MB, free: 3.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 64.09 kB / 419.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1064, allocations: 52.33 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.005311/0.1118, allocations: 2.722 MB / 474.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.1132, allocations: 0.666 MB / 475.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002404/0.1134, allocations: 11.88 kB / 475.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002957/0.1138, allocations: 51.64 kB / 475.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.114, allocations: 31.72 kB / 475.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.1144, allocations: 119.4 kB / 475.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.1147, allocations: 188 kB / 475.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.115, allocations: 108 kB / 475.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.1151, allocations: 75.7 kB / 475.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.1153, allocations: 87.61 kB / 475.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.465e-05/0.1153, allocations: 16 kB / 476 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.1155, allocations: 36 kB / 476 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.032e-05/0.1156, allocations: 55.72 kB / 476.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.1157, allocations: 87.52 kB / 476.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.116, allocations: 226.6 kB / 476.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1161, allocations: 0 / 476.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1161, allocations: 0 / 476.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1161, allocations: 0 / 476.4 MB, free: 8.867 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.0008172/0.1169, allocations: 490.7 kB / 476.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.117, allocations: 8.031 kB / 476.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.664e-05/0.117, allocations: 58.72 kB / 476.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.759e-05/0.1171, allocations: 20.66 kB / 476.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.1174, allocations: 243.9 kB / 477.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.1175, allocations: 16.38 kB / 477.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.1175, allocations: 12.38 kB / 477.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.1179, allocations: 197.2 kB / 477.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1179, allocations: 4 kB / 477.4 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.1179, allocations: 8 kB / 477.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.1179, allocations: 4 kB / 477.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.1181, allocations: 87.81 kB / 477.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008652/0.119, allocations: 0.5665 MB / 478 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.1191, allocations: 69.14 kB / 478.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.615e-05/0.1192, allocations: 33.77 kB / 478.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.1192, allocations: 0 / 478.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.1194, allocations: 89.05 kB / 478.2 MB, free: 6.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.1194, allocations: 4 kB / 478.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003121/0.1197, allocations: 137.5 kB / 478.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.1198, allocations: 89.05 kB / 478.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.12, allocations: 174.8 kB / 478.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.12, allocations: 25.7 kB / 478.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1201, allocations: 148.1 kB / 478.8 MB, free: 6.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.1201, allocations: 27.66 kB / 478.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.013e-05/0.1202, allocations: 45.69 kB / 478.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1203, allocations: 327 kB / 479.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.059e-05/0.1204, allocations: 23.98 kB / 479.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.1205, allocations: 116 kB / 479.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.1208, allocations: 191.3 kB / 479.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.1208, allocations: 4 kB / 479.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003111/0.1211, allocations: 189.1 kB / 479.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.1211, allocations: 11.94 kB / 479.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.1212, allocations: 4.375 kB / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1212, allocations: 8 kB / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.104e-05/0.1213, allocations: 15.94 kB / 479.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.1213, allocations: 11.92 kB / 479.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.1214, allocations: 19.84 kB / 479.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.1214, allocations: 8 kB / 479.8 MB, free: 5.082 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.0002666/0.1217, allocations: 184.2 kB / 480 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.1217, allocations: 11.89 kB / 480 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.875e-05/0.1218, allocations: 13.41 kB / 480 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1218, allocations: 3.938 kB / 480 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.1218, allocations: 4 kB / 480 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1218, allocations: 0 / 480 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005893/0.1224, allocations: 434.3 kB / 480.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1224, allocations: 0 / 480.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.15e-05/0.1225, allocations: 11.94 kB / 480.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.1225, allocations: 0 / 480.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.1225, allocations: 0 / 480.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1225, allocations: 4 kB / 480.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1225, allocations: 0 / 480.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.1228, allocations: 224 kB / 480.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.325e-05/0.1229, allocations: 92.94 kB / 480.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.1229, allocations: 4 kB / 480.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.473e-05/0.123, allocations: 4 kB / 480.8 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/0.123, allocations: 4 kB / 480.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1231, allocations: 7.984 kB / 480.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.1232, allocations: 123.2 kB / 480.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1232, allocations: 0 / 480.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003842/0.1236, allocations: 47.78 kB / 480.9 MB, free: 3.836 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.001325/0.1249, allocations: 0.9197 MB / 481.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002825/0.1252, allocations: 91.86 kB / 481.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1252, allocations: 0.75 kB / 481.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.353e-05/0.1253, allocations: 39.92 kB / 482 MB, free: 2.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.1257, allocations: 11.98 kB / 482 MB, free: 2.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.1284, allocations: 1.962 MB / 484 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.1288, allocations: 0.7358 MB / 484.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.001e-05/0.1289, allocations: 13.58 kB / 484.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.907e-05/0.129, allocations: 55.41 kB / 484.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.129, allocations: 0 / 484.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.1519, allocations: 3.555 MB / 488.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.368/7.52, allocations: 23.34 kB / 488.3 MB, free: 12.39 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)