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: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [: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.001603/0.001603, allocations: 184.2 kB / 8.136 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.162/1.162, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0009246/0.0009244, allocations: 99.98 kB / 280.8 MB, free: 1.312 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.781e-06/5.811e-06, allocations: 0 / 336.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.1948, allocations: 50.4 MB / 386.9 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08393/0.2787, allocations: 78.62 MB / 465.5 MB, free: 8.172 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.279, allocations: 67.97 kB / 465.6 MB, free: 8.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01603/0.295, allocations: 5.27 MB / 470.9 MB, free: 2.863 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.558e-05/0.2951, allocations: 8 kB / 470.9 MB, free: 2.855 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.0009555/0.2961, allocations: 0.5549 MB / 471.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2961, allocations: 8.031 kB / 471.4 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.004e-05/0.2962, allocations: 31.72 kB / 471.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.2965, allocations: 247.2 kB / 471.7 MB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001988/0.2967, allocations: 129.6 kB / 471.8 MB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.825e-05/0.2967, allocations: 15.91 kB / 471.8 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006448/0.2974, allocations: 384.8 kB / 472.2 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.2978, allocations: 274.7 kB / 472.5 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.2979, allocations: 4.844 kB / 472.5 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.2979, allocations: 0 / 472.5 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.2979, allocations: 4 kB / 472.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.2995, allocations: 0.9904 MB / 473.5 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003316/0.2999, allocations: 193.7 kB / 473.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.3001, allocations: 116.8 kB / 473.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.3001, allocations: 4.5 kB / 473.8 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.3002, allocations: 34.56 kB / 473.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.332e-06/0.3002, allocations: 0 / 473.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.007691/0.3079, allocations: 3.008 MB / 476.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.3079, allocations: 67.83 kB / 476.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.3081, allocations: 181.5 kB / 477.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.947e-05/0.3081, allocations: 29.69 kB / 477.1 MB, free: 12.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.225e-05/0.3082, allocations: 140.7 kB / 477.3 MB, free: 12.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.3083, allocations: 161.5 kB / 477.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-05/0.3084, allocations: 0 / 477.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.866e-05/0.3085, allocations: 342.8 kB / 477.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000498/0.309, allocations: 317.3 kB / 478.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005147/0.3095, allocations: 379.5 kB / 478.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.3099, allocations: 253.3 kB / 478.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3099, allocations: 0 / 478.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001105/0.311, allocations: 0.6877 MB / 479.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.3111, allocations: 12.12 kB / 479.4 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3111, allocations: 0 / 479.4 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3111, allocations: 7.984 kB / 479.4 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.3122, allocations: 191.7 kB / 479.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.3122, allocations: 8 kB / 479.6 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007631/0.313, allocations: 111.8 kB / 479.7 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.96e-05/0.3131, allocations: 16 kB / 479.7 MB, free: 9.684 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.000148/0.3132, allocations: 112.8 kB / 479.8 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.614e-05/0.3133, allocations: 23.72 kB / 479.8 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.424e-05/0.3134, allocations: 31.84 kB / 479.9 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.3134, allocations: 15.89 kB / 479.9 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3134, allocations: 0 / 479.9 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3134, allocations: 3.984 kB / 479.9 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.3163, allocations: 1.633 MB / 481.5 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.3163, allocations: 8.5 kB / 481.5 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007365/0.3171, allocations: 172.3 kB / 481.7 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-05/0.3171, allocations: 12 kB / 481.7 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.3171, allocations: 13.38 kB / 481.7 MB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.164e-05/0.3172, allocations: 19.92 kB / 481.7 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/0.3172, allocations: 11.94 kB / 481.7 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001278/0.3185, allocations: 1.301 MB / 483 MB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.3186, allocations: 148.7 kB / 483.2 MB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.502e-05/0.3187, allocations: 17.36 kB / 483.2 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005935/0.3193, allocations: 91.92 kB / 483.3 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.3195, allocations: 83.72 kB / 483.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.344e-05/0.3195, allocations: 24.94 kB / 483.4 MB, free: 5.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001072/0.3197, allocations: 144.3 kB / 483.5 MB, free: 5.324 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004815/0.3201, allocations: 80 kB / 483.6 MB, free: 5.246 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.0001531/0.3203, allocations: 119.1 kB / 483.7 MB, free: 5.117 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008907/0.3212, allocations: 0.5905 MB / 484.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3212, allocations: 4.25 kB / 484.3 MB, free: 4.523 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003813/0.3216, allocations: 211.5 kB / 484.5 MB, free: 4.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.322, allocations: 42.16 kB / 484.6 MB, free: 4.277 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.3238, allocations: 0.8214 MB / 485.4 MB, free: 3.328 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005875/0.3244, allocations: 0.8257 MB / 486.2 MB, free: 2.48 MB / 362.7 MB Notification: Performance of SimCode: time 3.6e-07/0.3244, allocations: 0 / 486.2 MB, free: 2.48 MB / 362.7 MB Notification: Performance of Templates: time 0.009668/0.334, allocations: 6.295 MB / 492.5 MB, free: 12.25 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches