Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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.001109/0.001109, allocations: 184.3 kB / 8.137 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.162/1.162, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009894/0.0009893, allocations: 100.7 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1191/0.1202, allocations: 55.81 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.3322, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08528/0.4175, allocations: 80.1 MB / 467.1 MB, free: 6.668 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.4177, allocations: 73.45 kB / 467.2 MB, free: 6.598 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.02169/0.4394, allocations: 7.46 MB / 474.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.4395, allocations: 8 kB / 474.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.928e-05/0.4396, allocations: 35.62 kB / 474.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/0.4399, allocations: 267.1 kB / 474.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002003/0.4402, allocations: 141.6 kB / 475.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.472e-05/0.4402, allocations: 23.98 kB / 475.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000694/0.4409, allocations: 409.2 kB / 475.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007443/0.4417, allocations: 466.4 kB / 475.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.4417, allocations: 3.906 kB / 475.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.4417, allocations: 4 kB / 476 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.4418, allocations: 4 kB / 476 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.4432, allocations: 0.9714 MB / 476.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008195/0.444, allocations: 361.1 kB / 477.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/0.4443, allocations: 198.5 kB / 477.5 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.098e-05/0.4444, allocations: 12.14 kB / 477.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.4444, allocations: 46.34 kB / 477.5 MB, free: 12.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.184e-06/0.4444, allocations: 0 / 477.5 MB, free: 12.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.00803/0.4525, allocations: 2.035 MB / 479.6 MB, free: 9.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.4526, allocations: 137 kB / 479.7 MB, free: 9.816 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.4528, allocations: 174.8 kB / 479.9 MB, free: 9.637 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.579e-05/0.4529, allocations: 29.7 kB / 479.9 MB, free: 9.602 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.4529, allocations: 137.4 kB / 480 MB, free: 9.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.4531, allocations: 185.3 kB / 480.2 MB, free: 9.281 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-05/0.4532, allocations: 0 / 480.2 MB, free: 9.281 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4533, allocations: 342.8 kB / 480.6 MB, free: 8.938 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007118/0.4541, allocations: 470.6 kB / 481 MB, free: 8.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008313/0.4549, allocations: 0.6251 MB / 481.6 MB, free: 7.777 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006752/0.4556, allocations: 421.3 kB / 482 MB, free: 7.363 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.4556, allocations: 4 kB / 482.1 MB, free: 7.359 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001797/0.4574, allocations: 1.063 MB / 483.1 MB, free: 6.289 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.4574, allocations: 4 kB / 483.1 MB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.4575, allocations: 12.03 kB / 483.1 MB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/0.4575, allocations: 8 kB / 483.1 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/0.459, allocations: 227.7 kB / 483.4 MB, free: 6.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.459, allocations: 19.92 kB / 483.4 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009864/0.46, allocations: 115.7 kB / 483.5 MB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.4601, allocations: 32.73 kB / 483.5 MB, free: 5.879 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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 0.0002304/0.4603, allocations: 131.6 kB / 483.7 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002841/0.4606, allocations: 142.1 kB / 483.8 MB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.4607, allocations: 47.02 kB / 483.8 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.4607, allocations: 8 kB / 483.8 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.4608, allocations: 0 / 483.8 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.4608, allocations: 3.984 kB / 483.8 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003633/0.4644, allocations: 1.899 MB / 485.7 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/0.4644, allocations: 9.281 kB / 485.8 MB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000814/0.4653, allocations: 211.7 kB / 486 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.935e-05/0.4653, allocations: 16 kB / 486 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.301e-05/0.4653, allocations: 19.84 kB / 486 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.559e-05/0.4654, allocations: 23.92 kB / 486 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.411e-05/0.4654, allocations: 19.88 kB / 486 MB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001757/0.4671, allocations: 1.701 MB / 487.7 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002069/0.4692, allocations: 2.363 MB / 490.1 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.4694, allocations: 172.6 kB / 490.3 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.829e-05/0.4695, allocations: 16 kB / 490.3 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006588/0.4702, allocations: 95.97 kB / 490.4 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.4704, allocations: 95.62 kB / 490.5 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.965e-05/0.4704, allocations: 32 kB / 490.5 MB, free: 13.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001341/0.4706, allocations: 145.2 kB / 490.6 MB, free: 13.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001199/0.4718, allocations: 108 kB / 490.8 MB, free: 13.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001901/0.472, allocations: 130.9 kB / 490.9 MB, free: 13.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.4733, allocations: 0.8237 MB / 491.7 MB, free: 12.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4733, allocations: 0 / 491.7 MB, free: 12.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000413/0.4737, allocations: 224.6 kB / 491.9 MB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005835/0.4743, allocations: 107.9 kB / 492 MB, free: 12.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.4762, allocations: 0.9395 MB / 493 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007307/0.4769, allocations: 0.8731 MB / 493.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4769, allocations: 4.406 kB / 493.8 MB, free: 10.33 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1)