Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",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.002469/0.002469, allocations: 202.2 kB / 8.535 MB, free: 1.738 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009407/0.0009407, allocations: 92.11 kB / 286.3 MB, free: 5.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1299/0.1309, allocations: 56.89 MB / 343.2 MB, free: 8.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.2379, allocations: 51.48 MB / 394.7 MB, free: 4.973 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3023/0.5403, allocations: 79.44 MB / 474.1 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.5406, allocations: 75.28 kB / 474.2 MB, free: 12.67 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0175/0.5582, allocations: 5.885 MB / 480.1 MB, free: 8.742 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.5582, allocations: 12 kB / 480.1 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.5583, allocations: 31.72 kB / 480.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.5587, allocations: 237 kB / 480.4 MB, free: 8.441 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.5589, allocations: 134.4 kB / 480.5 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.044e-05/0.559, allocations: 15.98 kB / 480.5 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006515/0.5597, allocations: 381.7 kB / 480.9 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004376/0.5601, allocations: 276.2 kB / 481.2 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.5601, allocations: 0 / 481.2 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.5602, allocations: 0 / 481.2 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.5602, allocations: 4 kB / 481.2 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.5619, allocations: 0.9825 MB / 482.1 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.5623, allocations: 194.7 kB / 482.3 MB, free: 6.852 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.5625, allocations: 119.6 kB / 482.5 MB, free: 6.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.5625, allocations: 0 / 482.5 MB, free: 6.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.5625, allocations: 37.75 kB / 482.5 MB, free: 6.734 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.653e-06/0.5625, allocations: 0 / 482.5 MB, free: 6.734 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.007997/0.5706, allocations: 3.012 MB / 485.5 MB, free: 4.293 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.5707, allocations: 63.83 kB / 485.6 MB, free: 4.219 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.571, allocations: 181.8 kB / 485.7 MB, free: 4.059 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.432e-05/0.5711, allocations: 33.7 kB / 485.8 MB, free: 4.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.838e-05/0.5712, allocations: 139.2 kB / 485.9 MB, free: 3.891 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.5714, allocations: 166.5 kB / 486.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.5714, allocations: 4.688 kB / 486.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.5715, allocations: 344.6 kB / 486.4 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/0.572, allocations: 315.8 kB / 486.7 MB, free: 3.254 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004968/0.5726, allocations: 372.6 kB / 487.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004048/0.573, allocations: 252.8 kB / 487.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.573, allocations: 0 / 487.3 MB, free: 2.895 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001259/0.5743, allocations: 0.6892 MB / 488 MB, free: 2.453 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.5743, allocations: 4 kB / 488 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.5743, allocations: 6.609 kB / 488 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/0.5743, allocations: 8.125 kB / 488 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.5755, allocations: 191.5 kB / 488.2 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.5756, allocations: 7.906 kB / 488.2 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008163/0.5764, allocations: 107.9 kB / 488.3 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-05/0.5765, allocations: 19.75 kB / 488.4 MB, free: 2.129 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (66): * Single equations (assignments): 66 * 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.0001799/0.5767, allocations: 108.9 kB / 488.5 MB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.5768, allocations: 25.91 kB / 488.5 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.822e-05/0.5769, allocations: 30.62 kB / 488.5 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.5769, allocations: 8 kB / 488.5 MB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.5769, allocations: 7.969 kB / 488.5 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.5769, allocations: 0 / 488.5 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003054/0.58, allocations: 1.634 MB / 490.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.58, allocations: 8 kB / 490.2 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007346/0.5807, allocations: 171.9 kB / 490.3 MB, free: 328 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.597e-05/0.5808, allocations: 12 kB / 490.4 MB, free: 316 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-05/0.5808, allocations: 12 kB / 490.4 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.199e-05/0.5808, allocations: 19.92 kB / 490.4 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.5808, allocations: 11.94 kB / 490.4 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001665/0.5825, allocations: 1.3 MB / 491.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002105/0.5846, allocations: 1.893 MB / 493.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.5849, allocations: 143.1 kB / 493.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.99e-05/0.5849, allocations: 19.89 kB / 493.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/0.5856, allocations: 89.23 kB / 493.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.5859, allocations: 92.16 kB / 493.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.709e-05/0.5859, allocations: 23.69 kB / 494 MB, free: 12.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001582/0.5861, allocations: 140.9 kB / 494.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001318/0.5874, allocations: 83.91 kB / 494.2 MB, free: 12.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * 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 (53): * Single equations (assignments): 53 * 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.0002198/0.5877, allocations: 129.8 kB / 494.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.5888, allocations: 0.5888 MB / 494.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5888, allocations: 0 / 494.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.5893, allocations: 213.3 kB / 495.1 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005116/0.5898, allocations: 40.16 kB / 495.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.592, allocations: 0.8048 MB / 495.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006793/0.5926, allocations: 0.8405 MB / 496.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5927, allocations: 0 / 496.8 MB, free: 10.11 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat