Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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) 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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 178.9 kB / 8.129 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 221.4 MB / 229.9 MB, free: 13.54 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009402/0.0009402, allocations: 102.2 kB / 280.8 MB, free: 10.53 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09806/0.09903, allocations: 55.82 MB / 336.6 MB, free: 2.723 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.1827, allocations: 50.42 MB / 387 MB, free: 260 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.203/0.3857, allocations: 77.82 MB / 464.8 MB, free: 3.93 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.3859, allocations: 67.95 kB / 464.9 MB, free: 3.863 MB / 338.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.006305/0.3922, allocations: 2.426 MB / 467.3 MB, free: 1.461 MB / 338.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.3923, allocations: 8 kB / 467.3 MB, free: 1.453 MB / 338.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.024e-05/0.3923, allocations: 19.75 kB / 467.4 MB, free: 1.434 MB / 338.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.3925, allocations: 192.5 kB / 467.5 MB, free: 1.207 MB / 338.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.3925, allocations: 8.719 kB / 467.6 MB, free: 1.199 MB / 338.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.648e-05/0.3926, allocations: 8 kB / 467.6 MB, free: 1.191 MB / 338.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001386/0.3927, allocations: 62.77 kB / 467.6 MB, free: 1.133 MB / 338.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003082/0.393, allocations: 196.4 kB / 467.8 MB, free: 0.9219 MB / 338.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.393, allocations: 0 / 467.8 MB, free: 0.9219 MB / 338.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.3931, allocations: 1.562 kB / 467.8 MB, free: 0.9219 MB / 338.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.3931, allocations: 7.906 kB / 467.8 MB, free: 0.9141 MB / 338.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005414/0.3936, allocations: 0.5504 MB / 468.4 MB, free: 316 kB / 338.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.3938, allocations: 117.9 kB / 468.5 MB, free: 176 kB / 338.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.54e-05/0.3939, allocations: 56.5 kB / 468.5 MB, free: 112 kB / 338.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.3939, allocations: 4 kB / 468.5 MB, free: 108 kB / 338.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.3939, allocations: 40.06 kB / 468.6 MB, free: 60 kB / 338.8 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.3939, allocations: 6.516 kB / 468.6 MB, free: 56 kB / 338.8 MB Notification: Performance of matching and sorting (n=14): time 0.0002379/0.3942, allocations: 107.5 kB / 468.7 MB, free: 15.95 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.3943, allocations: 106.8 kB / 468.8 MB, free: 15.82 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.705e-05/0.3943, allocations: 117 kB / 468.9 MB, free: 15.7 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.3944, allocations: 25.7 kB / 468.9 MB, free: 15.66 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.304e-05/0.3944, allocations: 107.5 kB / 469 MB, free: 15.56 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.3944, allocations: 27.64 kB / 469.1 MB, free: 15.53 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.3944, allocations: 0 / 469.1 MB, free: 15.53 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 8.085e-05/0.3945, allocations: 326.9 kB / 469.4 MB, free: 15.2 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.098e-05/0.3946, allocations: 23.94 kB / 469.4 MB, free: 15.18 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.328e-05/0.3947, allocations: 110.1 kB / 469.5 MB, free: 15.03 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.118e-05/0.3947, allocations: 45.23 kB / 469.6 MB, free: 14.99 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3947, allocations: 0 / 469.6 MB, free: 14.99 MB / 354.8 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002026/0.3949, allocations: 141.2 kB / 469.7 MB, free: 14.84 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.395, allocations: 4.438 kB / 469.7 MB, free: 14.84 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.395, allocations: 8 kB / 469.7 MB, free: 14.83 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.395, allocations: 4.562 kB / 469.7 MB, free: 14.83 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.3952, allocations: 47.91 kB / 469.8 MB, free: 14.78 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.3952, allocations: 4.547 kB / 469.8 MB, free: 14.78 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.3953, allocations: 24.7 kB / 469.8 MB, free: 14.75 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.3954, allocations: 12 kB / 469.8 MB, free: 14.74 MB / 354.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.105e-05/0.3954, allocations: 112.9 kB / 469.9 MB, free: 14.62 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.3956, allocations: 78.47 kB / 470 MB, free: 14.54 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.773e-05/0.3956, allocations: 14.25 kB / 470 MB, free: 14.53 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3956, allocations: 5.641 kB / 470 MB, free: 14.53 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3956, allocations: 0 / 470 MB, free: 14.53 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3956, allocations: 3.984 kB / 470 MB, free: 14.52 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/0.3958, allocations: 178.6 kB / 470.2 MB, free: 14.32 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3958, allocations: 4 kB / 470.2 MB, free: 14.31 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.396, allocations: 39.98 kB / 470.2 MB, free: 14.27 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.396, allocations: 0 / 470.2 MB, free: 14.27 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.3961, allocations: 4 kB / 470.2 MB, free: 14.27 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3961, allocations: 0 / 470.2 MB, free: 14.27 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3961, allocations: 3.984 kB / 470.2 MB, free: 14.27 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000278/0.3964, allocations: 354.8 kB / 470.6 MB, free: 13.89 MB / 354.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003757/0.3967, allocations: 0.7451 MB / 471.3 MB, free: 13.11 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.3968, allocations: 89.02 kB / 471.4 MB, free: 13 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.3968, allocations: 3.984 kB / 471.4 MB, free: 13 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.397, allocations: 11.94 kB / 471.4 MB, free: 12.99 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.979e-05/0.397, allocations: 10.39 kB / 471.4 MB, free: 12.98 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.397, allocations: 8.062 kB / 471.5 MB, free: 12.97 MB / 354.8 MB Notification: Performance of sort global known variables: time 4.969e-05/0.3971, allocations: 99.12 kB / 471.6 MB, free: 12.88 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.0008654/0.398, allocations: 23.98 kB / 471.6 MB, free: 12.85 MB / 354.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001047/0.3981, allocations: 100.9 kB / 471.7 MB, free: 12.75 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.3982, allocations: 75.88 kB / 471.7 MB, free: 12.67 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.3982, allocations: 0.875 kB / 471.8 MB, free: 12.67 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 3.435e-05/0.3983, allocations: 27.3 kB / 471.8 MB, free: 12.65 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.3986, allocations: 40.09 kB / 471.8 MB, free: 12.61 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005102/0.3991, allocations: 279.3 kB / 472.1 MB, free: 12.32 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.3994, allocations: 0.7313 MB / 472.8 MB, free: 11.56 MB / 354.8 MB Notification: Performance of SimCode: time 2.61e-07/0.3994, allocations: 0 / 472.8 MB, free: 11.56 MB / 354.8 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1)