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.001136/0.001136, allocations: 104.3 kB / 16.31 MB, free: 5.879 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.00117/0.00117, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.353/1.353, allocations: 222.9 MB / 240.9 MB, free: 15.18 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.05817/0.05817, allocations: 12.05 MB / 303.1 MB, free: 3.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 68.11 kB / 366.6 MB, free: 3.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2198, allocations: 52.32 MB / 418.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004057/0.2239, allocations: 2.736 MB / 421.6 MB, free: 18.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008685/0.2248, allocations: 0.6583 MB / 422.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2249, allocations: 7.938 kB / 422.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.2251, allocations: 55.58 kB / 422.4 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.985e-05/0.2252, allocations: 27.72 kB / 422.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002945/0.2255, allocations: 123.7 kB / 422.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.2257, allocations: 184 kB / 422.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.2259, allocations: 112.9 kB / 422.8 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.194e-05/0.226, allocations: 75.64 kB / 422.9 MB, free: 17.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.847e-05/0.2261, allocations: 87.61 kB / 423 MB, free: 17.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.2261, allocations: 16 kB / 423 MB, free: 17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.76e-05/0.2262, allocations: 36 kB / 423 MB, free: 16.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.057e-05/0.2263, allocations: 47.83 kB / 423 MB, free: 16.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.775e-05/0.2263, allocations: 87.53 kB / 423.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.2265, allocations: 213.5 kB / 423.3 MB, free: 16.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2266, allocations: 0 / 423.3 MB, free: 16.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2266, allocations: 0 / 423.3 MB, free: 16.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2266, allocations: 4 kB / 423.3 MB, free: 16.62 MB / 302.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.0005215/0.2271, allocations: 482.7 kB / 423.8 MB, free: 16.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.2271, allocations: 12.03 kB / 423.8 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.914e-05/0.2272, allocations: 46.73 kB / 423.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.457e-05/0.2272, allocations: 28.69 kB / 423.9 MB, free: 16.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.2275, allocations: 240.6 kB / 424.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.2275, allocations: 12.38 kB / 424.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.2275, allocations: 16.38 kB / 424.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.2278, allocations: 189.3 kB / 424.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2278, allocations: 7.875 kB / 424.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.2278, allocations: 4 kB / 424.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.2278, allocations: 4 kB / 424.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.228, allocations: 99.73 kB / 424.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006162/0.2286, allocations: 0.5743 MB / 425 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.712e-05/0.2287, allocations: 69.2 kB / 425.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.696e-05/0.2287, allocations: 29.72 kB / 425.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.2288, allocations: 0 / 425.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001858/0.229, allocations: 97 kB / 425.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.229, allocations: 0 / 425.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002697/0.2292, allocations: 133.5 kB / 425.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.2293, allocations: 88.98 kB / 425.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.2294, allocations: 174.3 kB / 425.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.2295, allocations: 33.7 kB / 425.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.481e-05/0.2295, allocations: 148.3 kB / 425.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.2295, allocations: 23.73 kB / 425.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-05/0.2296, allocations: 45.61 kB / 425.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.664e-05/0.2297, allocations: 326.8 kB / 426.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.838e-05/0.2297, allocations: 23.98 kB / 426.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.902e-05/0.2298, allocations: 114 kB / 426.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.23, allocations: 198.9 kB / 426.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.23, allocations: 0 / 426.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002034/0.2302, allocations: 181.6 kB / 426.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2302, allocations: 8 kB / 426.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2302, allocations: 7.984 kB / 426.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.2302, allocations: 4 kB / 426.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.468e-05/0.2303, allocations: 27.86 kB / 426.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.2303, allocations: 7.938 kB / 426.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.326e-05/0.2304, allocations: 19.84 kB / 426.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.2304, allocations: 8 kB / 426.8 MB, free: 12.84 MB / 302.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.0001695/0.2306, allocations: 191.9 kB / 427 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.2306, allocations: 11.81 kB / 427 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.2307, allocations: 13.41 kB / 427 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2307, allocations: 3.938 kB / 427 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2307, allocations: 4 kB / 427 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2307, allocations: 3.984 kB / 427 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000315/0.231, allocations: 426.4 kB / 427.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.231, allocations: 4 kB / 427.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.845e-06/0.231, allocations: 7.875 kB / 427.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.231, allocations: 0 / 427.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.2311, allocations: 8 kB / 427.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.2311, allocations: 3.984 kB / 427.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2311, allocations: 0 / 427.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001412/0.2312, allocations: 216.2 kB / 427.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.732e-05/0.2312, allocations: 92.86 kB / 427.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.2313, allocations: 0 / 427.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.487e-05/0.2313, allocations: 4 kB / 427.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.631e-05/0.2314, allocations: 7.922 kB / 427.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.2314, allocations: 12 kB / 427.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.06e-05/0.2315, allocations: 124.2 kB / 427.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2315, allocations: 0 / 427.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.2318, allocations: 59.77 kB / 427.9 MB, free: 11.57 MB / 302.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.0007077/0.2325, allocations: 0.907 MB / 428.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.2326, allocations: 103.9 kB / 428.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2327, allocations: 4 kB / 429 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.445e-05/0.2327, allocations: 31.94 kB / 429 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.233, allocations: 15.98 kB / 429 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.2344, allocations: 1.951 MB / 430.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001775/0.2346, allocations: 0.7437 MB / 431.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.46e-05/0.2346, allocations: 13.42 kB / 431.7 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.035e-05/0.2347, allocations: 55.41 kB / 431.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2347, allocations: 0 / 431.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.257, allocations: 3.399 MB / 435.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/7.676, allocations: 27.52 kB / 435.2 MB, free: 4.297 MB / 302.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)