Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",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.00109/0.00109, 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.161/1.161, allocations: 221.4 MB / 229.9 MB, free: 13.63 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.000908/0.000908, allocations: 96.17 kB / 280.8 MB, free: 10.53 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09876/0.09969, allocations: 55.81 MB / 336.6 MB, free: 2.734 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08712/0.1868, allocations: 50.42 MB / 387 MB, free: 268 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.222/0.4088, allocations: 77.98 MB / 465 MB, free: 3.762 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.4091, allocations: 73.52 kB / 465.1 MB, free: 3.691 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.007624/0.4167, allocations: 2.717 MB / 467.8 MB, free: 1 MB / 338.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.4168, allocations: 14 kB / 467.8 MB, free: 0.9883 MB / 338.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.372e-05/0.4168, allocations: 12 kB / 467.8 MB, free: 0.9766 MB / 338.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002077/0.4171, allocations: 198.8 kB / 468 MB, free: 0.7422 MB / 338.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.4171, allocations: 4 kB / 468 MB, free: 0.7383 MB / 338.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/0.4171, allocations: 12 kB / 468 MB, free: 0.7266 MB / 338.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001373/0.4173, allocations: 56.77 kB / 468.1 MB, free: 0.6719 MB / 338.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.4176, allocations: 185.5 kB / 468.3 MB, free: 480 kB / 338.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.4176, allocations: 3.938 kB / 468.3 MB, free: 476 kB / 338.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.4176, allocations: 0.5 kB / 468.3 MB, free: 476 kB / 338.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.4177, allocations: 4 kB / 468.3 MB, free: 472 kB / 338.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005779/0.4182, allocations: 0.5646 MB / 468.8 MB, free: 15.84 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.4185, allocations: 120.3 kB / 469 MB, free: 15.71 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.845e-05/0.4186, allocations: 52.8 kB / 469 MB, free: 15.65 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.4186, allocations: 1.688 kB / 469 MB, free: 15.65 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.4187, allocations: 47.86 kB / 469.1 MB, free: 15.59 MB / 354.8 MB Notification: Performance of pre-optimization done (n=14): time 1.472e-06/0.4187, allocations: 0 / 469.1 MB, free: 15.59 MB / 354.8 MB Notification: Performance of matching and sorting (n=14): time 0.0002379/0.4189, allocations: 101.1 kB / 469.2 MB, free: 15.49 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.927e-05/0.419, allocations: 115.6 kB / 469.3 MB, free: 15.36 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.638e-05/0.4191, allocations: 124.3 kB / 469.4 MB, free: 15.23 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.4191, allocations: 25.7 kB / 469.4 MB, free: 15.2 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/0.4192, allocations: 111.8 kB / 469.5 MB, free: 15.09 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.4192, allocations: 23.7 kB / 469.5 MB, free: 15.06 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.4192, allocations: 4 kB / 469.5 MB, free: 15.06 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.4193, allocations: 322.8 kB / 469.9 MB, free: 14.73 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.602e-05/0.4194, allocations: 24.38 kB / 469.9 MB, free: 14.71 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.651e-05/0.4195, allocations: 118.2 kB / 470 MB, free: 14.54 MB / 354.8 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.4197, allocations: 129.1 kB / 470.1 MB, free: 14.4 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4197, allocations: 0 / 470.1 MB, free: 14.4 MB / 354.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002309/0.42, allocations: 145.3 kB / 470.3 MB, free: 14.25 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.42, allocations: 7.906 kB / 470.3 MB, free: 14.24 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.42, allocations: 4 kB / 470.3 MB, free: 14.24 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.42, allocations: 4 kB / 470.3 MB, free: 14.23 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.4202, allocations: 56.38 kB / 470.3 MB, free: 14.18 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.4202, allocations: 8 kB / 470.3 MB, free: 14.17 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.4203, allocations: 19.83 kB / 470.4 MB, free: 14.15 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.4204, allocations: 13.64 kB / 470.4 MB, free: 14.14 MB / 354.8 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: PI.y = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.549e-05/0.4205, allocations: 112.9 kB / 470.5 MB, free: 14.02 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.4206, allocations: 86.38 kB / 470.6 MB, free: 13.93 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.309e-05/0.4207, allocations: 18 kB / 470.6 MB, free: 13.92 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4207, allocations: 7.984 kB / 470.6 MB, free: 13.91 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4207, allocations: 2.578 kB / 470.6 MB, free: 13.91 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4207, allocations: 0 / 470.6 MB, free: 13.91 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.4209, allocations: 170.1 kB / 470.8 MB, free: 13.71 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4209, allocations: 4 kB / 470.8 MB, free: 13.7 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.4212, allocations: 51.89 kB / 470.8 MB, free: 13.65 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4212, allocations: 4 kB / 470.8 MB, free: 13.65 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.4212, allocations: 0.5625 kB / 470.8 MB, free: 13.65 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.4212, allocations: 0 / 470.8 MB, free: 13.65 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4212, allocations: 4 kB / 470.8 MB, free: 13.64 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003309/0.4216, allocations: 360 kB / 471.2 MB, free: 13.26 MB / 354.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000434/0.422, allocations: 0.7572 MB / 471.9 MB, free: 12.47 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.4221, allocations: 96.97 kB / 472 MB, free: 12.36 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.4221, allocations: 8 kB / 472 MB, free: 12.35 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.4223, allocations: 4 kB / 472 MB, free: 12.35 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.4223, allocations: 7.984 kB / 472.1 MB, free: 12.34 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.4223, allocations: 4 kB / 472.1 MB, free: 12.34 MB / 354.8 MB Notification: Performance of sort global known variables: time 5.471e-05/0.4224, allocations: 102.9 kB / 472.2 MB, free: 12.24 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.0008654/0.4233, allocations: 36.12 kB / 472.2 MB, free: 12.2 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 (15): * Single equations (assignments): 15 * 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.0001488/0.4234, allocations: 106 kB / 472.3 MB, free: 12.09 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0001682/0.4236, allocations: 83.86 kB / 472.4 MB, free: 12.01 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4236, allocations: 0 / 472.4 MB, free: 12.01 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 3.67e-05/0.4236, allocations: 16 kB / 472.4 MB, free: 12 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.424, allocations: 47.06 kB / 472.4 MB, free: 11.95 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007244/0.4247, allocations: 314.5 kB / 472.7 MB, free: 11.64 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003671/0.4251, allocations: 0.7411 MB / 473.5 MB, free: 10.87 MB / 354.8 MB Notification: Performance of SimCode: time 3.01e-07/0.4251, allocations: 0 / 473.5 MB, free: 10.87 MB / 354.8 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1)