Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",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.001219/0.001219, allocations: 186 kB / 8.131 MB, free: 2.074 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.195/1.195, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0008935/0.0008936, allocations: 100.8 kB / 280.8 MB, free: 1.312 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1019/0.1029, allocations: 55.81 MB / 336.6 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.3581, allocations: 50.39 MB / 387 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09613/0.4543, allocations: 79.94 MB / 466.9 MB, free: 6.914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.4546, allocations: 71.91 kB / 467 MB, free: 6.844 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.01957/0.4742, allocations: 6.768 MB / 473.8 MB, free: 60 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.4742, allocations: 8 kB / 473.8 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.367e-05/0.4743, allocations: 36.94 kB / 473.8 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.4747, allocations: 263.8 kB / 474.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.4749, allocations: 133.7 kB / 474.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.475, allocations: 16 kB / 474.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007/0.4757, allocations: 409.2 kB / 474.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007076/0.4764, allocations: 451.6 kB / 475.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.4764, allocations: 4 kB / 475.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.4765, allocations: 0 / 475.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.4765, allocations: 8 kB / 475.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.4779, allocations: 0.9836 MB / 476.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008357/0.4788, allocations: 353.2 kB / 476.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002674/0.4791, allocations: 198.5 kB / 476.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.13e-05/0.4791, allocations: 16.12 kB / 476.6 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.4791, allocations: 48.97 kB / 476.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.803e-06/0.4792, allocations: 0 / 476.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007851/0.487, allocations: 2.02 MB / 478.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.4871, allocations: 137 kB / 478.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.4873, allocations: 181.8 kB / 479 MB, free: 10.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.078e-05/0.4874, allocations: 25.7 kB / 479 MB, free: 10.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.562e-05/0.4875, allocations: 133.5 kB / 479.2 MB, free: 10.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/0.4876, allocations: 185.3 kB / 479.3 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.637e-05/0.4877, allocations: 4 kB / 479.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4879, allocations: 342.8 kB / 479.7 MB, free: 9.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007055/0.4886, allocations: 465.5 kB / 480.1 MB, free: 9.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008232/0.4894, allocations: 0.6368 MB / 480.8 MB, free: 8.742 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006345/0.49, allocations: 413.3 kB / 481.2 MB, free: 8.336 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.49, allocations: 0 / 481.2 MB, free: 8.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00177/0.4918, allocations: 1.059 MB / 482.2 MB, free: 7.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.4919, allocations: 8.125 kB / 482.2 MB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4919, allocations: 8 kB / 482.2 MB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.4919, allocations: 12 kB / 482.3 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.4933, allocations: 239.7 kB / 482.5 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.4933, allocations: 12.97 kB / 482.5 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009675/0.4943, allocations: 119.7 kB / 482.6 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.4944, allocations: 27.98 kB / 482.6 MB, free: 6.852 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.0002496/0.4947, allocations: 124.7 kB / 482.8 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002956/0.495, allocations: 147.4 kB / 482.9 MB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.4951, allocations: 35.08 kB / 482.9 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.555e-06/0.4951, allocations: 8.094 kB / 483 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4951, allocations: 4 kB / 483 MB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.4952, allocations: 7.969 kB / 483 MB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003602/0.4988, allocations: 1.911 MB / 484.9 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.4988, allocations: 12 kB / 484.9 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008184/0.4996, allocations: 211.8 kB / 485.1 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.96e-05/0.4996, allocations: 16 kB / 485.1 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.178e-05/0.4997, allocations: 12 kB / 485.1 MB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.835e-05/0.4997, allocations: 27.92 kB / 485.1 MB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/0.4997, allocations: 11.94 kB / 485.2 MB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001787/0.5015, allocations: 1.71 MB / 486.9 MB, free: 2.016 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002239/0.5038, allocations: 2.359 MB / 489.2 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.504, allocations: 160.7 kB / 489.4 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.543e-05/0.5041, allocations: 16 kB / 489.4 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006563/0.5048, allocations: 95.97 kB / 489.5 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.505, allocations: 95.62 kB / 489.6 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.309e-05/0.505, allocations: 36 kB / 489.6 MB, free: 14.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000121/0.5052, allocations: 136.3 kB / 489.8 MB, free: 14.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001309/0.5065, allocations: 111.9 kB / 489.9 MB, free: 14.59 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.0002029/0.5067, allocations: 124 kB / 490 MB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.508, allocations: 0.8312 MB / 490.8 MB, free: 13.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5081, allocations: 0 / 490.8 MB, free: 13.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004347/0.5085, allocations: 215.9 kB / 491 MB, free: 13.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006422/0.5091, allocations: 118 kB / 491.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.5112, allocations: 0.9361 MB / 492.1 MB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007326/0.5119, allocations: 0.8731 MB / 493 MB, free: 11.32 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5119, allocations: 4 kB / 493 MB, free: 11.31 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1)