Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009915/0.0009916, allocations: 187.7 kB / 8.135 MB, free: 2.207 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.156/1.156, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0008699/0.0008699, allocations: 93.25 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09868/0.09958, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.2901, allocations: 50.38 MB / 387 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08115/0.3713, allocations: 78.62 MB / 465.6 MB, free: 8.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.3715, allocations: 75.89 kB / 465.7 MB, free: 8.168 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.01687/0.3884, allocations: 5.828 MB / 471.5 MB, free: 2.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.3884, allocations: 8 kB / 471.5 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.009e-05/0.3885, allocations: 31.72 kB / 471.6 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.3888, allocations: 247.4 kB / 471.8 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.389, allocations: 129.6 kB / 471.9 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.3891, allocations: 19.91 kB / 471.9 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006284/0.3897, allocations: 378.2 kB / 472.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004476/0.3902, allocations: 281.8 kB / 472.6 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3902, allocations: 0 / 472.6 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.731e-05/0.3902, allocations: 0 / 472.6 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.3903, allocations: 8 kB / 472.6 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.3919, allocations: 0.9904 MB / 473.6 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003515/0.3923, allocations: 188 kB / 473.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001978/0.3925, allocations: 120.8 kB / 473.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.605e-05/0.3925, allocations: 8.5 kB / 473.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.3926, allocations: 38.48 kB / 473.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.894e-06/0.3926, allocations: 0 / 473.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.007741/0.4003, allocations: 3.013 MB / 476.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.4004, allocations: 55.84 kB / 477 MB, free: 12.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.4006, allocations: 189.4 kB / 477.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.4007, allocations: 25.7 kB / 477.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.54e-05/0.4008, allocations: 136.7 kB / 477.3 MB, free: 12.22 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.4009, allocations: 173.5 kB / 477.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.401, allocations: 0 / 477.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4011, allocations: 334.8 kB / 477.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004616/0.4015, allocations: 321.3 kB / 478.1 MB, free: 11.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/0.402, allocations: 374 kB / 478.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000383/0.4024, allocations: 257.3 kB / 478.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4024, allocations: 0 / 478.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001147/0.4036, allocations: 0.6877 MB / 479.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.4036, allocations: 4 kB / 479.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.4036, allocations: 4 kB / 479.5 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.4037, allocations: 7.938 kB / 479.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.4047, allocations: 200.7 kB / 479.7 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.4048, allocations: 4 kB / 479.7 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007238/0.4055, allocations: 104.8 kB / 479.8 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.277e-05/0.4056, allocations: 16 kB / 479.8 MB, free: 9.738 MB / 362.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.0001607/0.4057, allocations: 115.6 kB / 479.9 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.332e-05/0.4058, allocations: 31.64 kB / 479.9 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.202e-05/0.4059, allocations: 35.09 kB / 480 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.4059, allocations: 7.906 kB / 480 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.4059, allocations: 4 kB / 480 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.4059, allocations: 8.828 kB / 480 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/0.409, allocations: 1.624 MB / 481.6 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.4091, allocations: 8.188 kB / 481.6 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000718/0.4098, allocations: 175.8 kB / 481.8 MB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-05/0.4098, allocations: 12 kB / 481.8 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/0.4099, allocations: 12 kB / 481.8 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.149e-05/0.4099, allocations: 15.94 kB / 481.8 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.144e-05/0.4099, allocations: 19.92 kB / 481.8 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001516/0.4114, allocations: 1.291 MB / 483.1 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00178/0.4132, allocations: 1.899 MB / 485 MB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.4134, allocations: 148.8 kB / 485.2 MB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.078e-05/0.4135, allocations: 11.91 kB / 485.2 MB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005836/0.4141, allocations: 95.91 kB / 485.3 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.4143, allocations: 83.73 kB / 485.4 MB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.356e-05/0.4143, allocations: 24 kB / 485.4 MB, free: 3.285 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001167/0.4144, allocations: 144.3 kB / 485.5 MB, free: 3.145 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001055/0.4155, allocations: 80 kB / 485.6 MB, free: 3.066 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.0001823/0.4157, allocations: 126.9 kB / 485.7 MB, free: 2.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009201/0.4166, allocations: 0.5907 MB / 486.3 MB, free: 2.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4166, allocations: 4.062 kB / 486.3 MB, free: 2.336 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003822/0.417, allocations: 203.6 kB / 486.5 MB, free: 2.137 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.4174, allocations: 42.16 kB / 486.6 MB, free: 2.098 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.4192, allocations: 0.8182 MB / 487.4 MB, free: 1.156 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005846/0.4198, allocations: 0.8364 MB / 488.2 MB, free: 304 kB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4198, allocations: 0 / 488.2 MB, free: 304 kB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat