Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001119/0.001119, allocations: 198.5 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 225.5 MB / 234.4 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009385/0.0009381, allocations: 93.62 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1249/0.1259, allocations: 56.9 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.2391, allocations: 51.48 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2887/0.5279, allocations: 80.75 MB / 475.5 MB, free: 11.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.5282, allocations: 65.97 kB / 475.5 MB, free: 11.84 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.01905/0.5473, allocations: 6.833 MB / 482.4 MB, free: 6.824 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.5473, allocations: 8 kB / 482.4 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.5475, allocations: 35.62 kB / 482.4 MB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.5478, allocations: 263 kB / 482.7 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/0.5481, allocations: 136.7 kB / 482.8 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.411e-05/0.5481, allocations: 16 kB / 482.8 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007187/0.5489, allocations: 414 kB / 483.2 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007792/0.5496, allocations: 445.4 kB / 483.6 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.557e-05/0.5497, allocations: 4 kB / 483.6 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.634e-05/0.5497, allocations: 0 / 483.6 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.5498, allocations: 7.906 kB / 483.7 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.5514, allocations: 0.9714 MB / 484.6 MB, free: 4.832 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008064/0.5523, allocations: 359.9 kB / 485 MB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.5525, allocations: 200.2 kB / 485.2 MB, free: 4.414 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.248e-05/0.5526, allocations: 12 kB / 485.2 MB, free: 4.402 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.5526, allocations: 34.06 kB / 485.2 MB, free: 4.363 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.833e-06/0.5526, allocations: 4.75 kB / 485.2 MB, free: 4.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.008151/0.5608, allocations: 2.022 MB / 487.2 MB, free: 2.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.812e-05/0.5609, allocations: 144 kB / 487.4 MB, free: 2.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.5612, allocations: 180.8 kB / 487.6 MB, free: 2.559 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.045e-05/0.5613, allocations: 29.7 kB / 487.6 MB, free: 2.523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.343e-05/0.5614, allocations: 135.6 kB / 487.7 MB, free: 2.398 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.5616, allocations: 176.3 kB / 487.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.137e-05/0.5616, allocations: 0 / 487.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.982e-05/0.5617, allocations: 346.7 kB / 488.2 MB, free: 1.914 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007/0.5624, allocations: 470.6 kB / 488.7 MB, free: 1.695 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007332/0.5632, allocations: 0.6286 MB / 489.3 MB, free: 1.246 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005873/0.5638, allocations: 418.4 kB / 489.7 MB, free: 1.027 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.5638, allocations: 0 / 489.7 MB, free: 1.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001787/0.5656, allocations: 1.063 MB / 490.8 MB, free: 384 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.5656, allocations: 6.594 kB / 490.8 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.5656, allocations: 4 kB / 490.8 MB, free: 376 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.5657, allocations: 16 kB / 490.8 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.5671, allocations: 231.1 kB / 491 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.5671, allocations: 8 kB / 491.1 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.5682, allocations: 123.7 kB / 491.2 MB, free: 0 / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.5683, allocations: 27.08 kB / 491.2 MB, free: 15.97 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.0002599/0.5686, allocations: 132.6 kB / 491.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003209/0.5689, allocations: 140.4 kB / 491.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.5691, allocations: 36.83 kB / 491.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.5691, allocations: 11.98 kB / 491.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.5691, allocations: 4 kB / 491.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.5691, allocations: 3.984 kB / 491.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003869/0.573, allocations: 1.911 MB / 493.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/0.573, allocations: 12.94 kB / 493.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000855/0.5739, allocations: 214.5 kB / 493.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.563e-05/0.574, allocations: 16 kB / 493.7 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.849e-05/0.574, allocations: 12 kB / 493.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.506e-05/0.574, allocations: 19.92 kB / 493.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/0.5741, allocations: 15.94 kB / 493.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001981/0.576, allocations: 1.712 MB / 495.4 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002353/0.5784, allocations: 2.364 MB / 497.8 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.5786, allocations: 160.9 kB / 498 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.45e-05/0.5787, allocations: 16.92 kB / 498 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006919/0.5794, allocations: 95.97 kB / 498.1 MB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.5797, allocations: 98.08 kB / 498.2 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.371e-05/0.5797, allocations: 31.23 kB / 498.2 MB, free: 9.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001269/0.5799, allocations: 143.1 kB / 498.3 MB, free: 9.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00138/0.5812, allocations: 104 kB / 498.4 MB, free: 8.965 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.0001899/0.5814, allocations: 126.2 kB / 498.6 MB, free: 8.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.5828, allocations: 0.8263 MB / 499.4 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5828, allocations: 1.438 kB / 499.4 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004742/0.5833, allocations: 223.7 kB / 499.6 MB, free: 8.219 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006544/0.584, allocations: 107.6 kB / 499.7 MB, free: 8.133 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.5862, allocations: 0.9388 MB / 0.4889 GB, free: 7.168 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008149/0.587, allocations: 0.8711 MB / 0.4898 GB, free: 6.281 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.587, allocations: 0 / 0.4898 GB, free: 6.281 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1)