Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",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 trunk/package.mo): time 0.001262/0.001263, allocations: 199.6 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009235/0.0009235, allocations: 95.05 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1203/0.1212, allocations: 56.9 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.2368, allocations: 51.48 MB / 394.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2965/0.5333, allocations: 81.03 MB / 475.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.5336, allocations: 72.17 kB / 475.8 MB, free: 11.32 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.02073/0.5543, allocations: 7.599 MB / 483.4 MB, free: 5.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.5544, allocations: 8 kB / 483.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.687e-05/0.5545, allocations: 43.53 kB / 483.5 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.5548, allocations: 292.3 kB / 483.7 MB, free: 5.305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/0.555, allocations: 141.3 kB / 483.9 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.5551, allocations: 16 kB / 483.9 MB, free: 5.137 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000708/0.5558, allocations: 415.8 kB / 484.3 MB, free: 4.859 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007166/0.5565, allocations: 467.2 kB / 484.8 MB, free: 4.492 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.5565, allocations: 3.906 kB / 484.8 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.5566, allocations: 3.938 kB / 484.8 MB, free: 4.484 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.5566, allocations: 8 kB / 484.8 MB, free: 4.477 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.558, allocations: 0.9884 MB / 485.8 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007827/0.5588, allocations: 363.8 kB / 486.1 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.5591, allocations: 195.5 kB / 486.3 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.403e-05/0.5591, allocations: 4 kB / 486.3 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.5591, allocations: 43.78 kB / 486.4 MB, free: 3.121 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 2.185e-06/0.5592, allocations: 0 / 486.4 MB, free: 3.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.008005/0.5672, allocations: 2.07 MB / 488.4 MB, free: 1.621 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.5673, allocations: 145 kB / 488.6 MB, free: 1.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.5675, allocations: 230.3 kB / 488.8 MB, free: 1.254 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.507e-05/0.5676, allocations: 29.64 kB / 488.8 MB, free: 1.219 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.5677, allocations: 129.1 kB / 488.9 MB, free: 1.098 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.5678, allocations: 187.9 kB / 489.1 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.8e-05/0.5679, allocations: 0 / 489.1 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.643e-05/0.568, allocations: 346.2 kB / 489.5 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006395/0.5686, allocations: 474.8 kB / 489.9 MB, free: 392 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007505/0.5694, allocations: 0.6292 MB / 490.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006553/0.57, allocations: 421.7 kB / 491 MB, free: 15.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5701, allocations: 0 / 491 MB, free: 15.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001844/0.5719, allocations: 1.062 MB / 492 MB, free: 15.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.5719, allocations: 4 kB / 492 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.572, allocations: 4 kB / 492 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.572, allocations: 12 kB / 492.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/0.5736, allocations: 236.4 kB / 492.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/0.5736, allocations: 19.92 kB / 492.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.5747, allocations: 115.7 kB / 492.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.5748, allocations: 27.48 kB / 492.4 MB, free: 14.66 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.0002424/0.575, allocations: 124 kB / 492.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003323/0.5754, allocations: 144.8 kB / 492.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.5756, allocations: 48.52 kB / 492.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.5756, allocations: 9.688 kB / 492.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/0.5756, allocations: 4 kB / 492.8 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.5756, allocations: 7.984 kB / 492.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004032/0.5797, allocations: 1.918 MB / 494.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/0.5797, allocations: 13 kB / 494.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008769/0.5806, allocations: 204.4 kB / 494.9 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.7e-05/0.5806, allocations: 16.09 kB / 494.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.337e-05/0.5807, allocations: 28.44 kB / 494.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.39e-05/0.5807, allocations: 15.94 kB / 495 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/0.5807, allocations: 19.88 kB / 495 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002001/0.5827, allocations: 1.717 MB / 496.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002444/0.5852, allocations: 2.365 MB / 499.1 MB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/0.5855, allocations: 190 kB / 499.3 MB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.823e-05/0.5856, allocations: 20.05 kB / 499.3 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000724/0.5863, allocations: 91.92 kB / 499.4 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.5865, allocations: 99.56 kB / 499.5 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.882e-05/0.5866, allocations: 34.31 kB / 499.5 MB, free: 7.812 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000189/0.5868, allocations: 181 kB / 499.7 MB, free: 7.664 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001391/0.5882, allocations: 104 kB / 499.8 MB, free: 7.562 MB / 362.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.0002426/0.5884, allocations: 122.5 kB / 499.9 MB, free: 7.438 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001373/0.5898, allocations: 0.8315 MB / 0.489 GB, free: 6.984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/0.5898, allocations: 4.5 kB / 0.489 GB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004906/0.5903, allocations: 217.3 kB / 0.4892 GB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000726/0.5911, allocations: 120.5 kB / 0.4893 GB, free: 6.727 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.5933, allocations: 0.9892 MB / 0.4903 GB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007868/0.5941, allocations: 0.89 MB / 0.4911 GB, free: 4.809 MB / 362.7 MB Notification: Performance of SimCode: time 6.92e-07/0.5941, allocations: 3.938 kB / 0.4912 GB, free: 4.805 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1)