Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") [: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 3.2.3+maint.om/package.mo): time 0.001267/0.001267, allocations: 192.3 kB / 7.849 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.216/1.216, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009564/0.0009566, allocations: 86.83 kB / 261.5 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07548/0.07548, allocations: 12.6 MB / 322 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.742e-06/6.963e-06, allocations: 4 kB / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08694/0.08696, allocations: 50.37 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2756/0.3626, allocations: 81.18 MB / 0.498 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001782/0.3628, allocations: 67.14 kB / 0.498 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01696/0.3798, allocations: 6.075 MB / 0.504 GB, free: 10.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.3799, allocations: 3.781 kB / 0.504 GB, free: 10.77 MB / 330.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.0009035/0.3808, allocations: 0.5848 MB / 0.5046 GB, free: 10.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.3808, allocations: 7.688 kB / 0.5046 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.3809, allocations: 38.22 kB / 0.5046 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.3812, allocations: 263.4 kB / 0.5049 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.3814, allocations: 139.2 kB / 0.505 GB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.337e-05/0.3815, allocations: 19 kB / 0.505 GB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006181/0.3821, allocations: 411.6 kB / 0.5054 GB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006381/0.3827, allocations: 447.4 kB / 0.5058 GB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.3828, allocations: 7.75 kB / 0.5058 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.21e-05/0.3828, allocations: 0 / 0.5058 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.3828, allocations: 7.531 kB / 0.5058 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.3841, allocations: 0.9664 MB / 0.5068 GB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007374/0.3848, allocations: 364.5 kB / 0.5071 GB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002288/0.3851, allocations: 187.6 kB / 0.5073 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.891e-05/0.3851, allocations: 10.7 kB / 0.5073 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.3851, allocations: 46.62 kB / 0.5074 GB, free: 8.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 1.803e-06/0.3852, allocations: 0 / 0.5074 GB, free: 8.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.008022/0.3932, allocations: 2.027 MB / 0.5093 GB, free: 8.312 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.3933, allocations: 149.2 kB / 0.5095 GB, free: 8.148 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001929/0.3935, allocations: 172 kB / 0.5096 GB, free: 8.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.276e-05/0.3936, allocations: 25.7 kB / 0.5097 GB, free: 8.008 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.019e-05/0.3936, allocations: 136.4 kB / 0.5098 GB, free: 7.891 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.3938, allocations: 187.4 kB / 0.51 GB, free: 7.754 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.749e-05/0.3938, allocations: 0 / 0.51 GB, free: 7.754 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.83e-05/0.3939, allocations: 344 kB / 0.5103 GB, free: 7.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006951/0.3946, allocations: 474.4 kB / 0.5108 GB, free: 7.418 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007608/0.3954, allocations: 0.6325 MB / 0.5114 GB, free: 7.191 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005963/0.396, allocations: 416.6 kB / 0.5118 GB, free: 7.141 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.396, allocations: 2.594 kB / 0.5118 GB, free: 7.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001697/0.3977, allocations: 1.057 MB / 0.5128 GB, free: 6.996 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3977, allocations: 5.406 kB / 0.5128 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3977, allocations: 5.188 kB / 0.5128 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.723e-05/0.3978, allocations: 14.47 kB / 0.5128 GB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.3993, allocations: 232.4 kB / 0.5131 GB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.3993, allocations: 16.95 kB / 0.5131 GB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.4004, allocations: 120.7 kB / 0.5132 GB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.502e-05/0.4005, allocations: 30.42 kB / 0.5132 GB, free: 6.875 MB / 330.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.0002117/0.4007, allocations: 128.3 kB / 0.5133 GB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.401, allocations: 135.6 kB / 0.5135 GB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.4011, allocations: 36.06 kB / 0.5135 GB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4011, allocations: 7.438 kB / 0.5135 GB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.4011, allocations: 9.875 kB / 0.5135 GB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.4011, allocations: 4.672 kB / 0.5135 GB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.4045, allocations: 1.902 MB / 0.5154 GB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/0.4046, allocations: 13.97 kB / 0.5154 GB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000835/0.4054, allocations: 211.7 kB / 0.5156 GB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.828e-05/0.4054, allocations: 19.12 kB / 0.5156 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.199e-05/0.4055, allocations: 13.75 kB / 0.5156 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.57e-05/0.4055, allocations: 21.67 kB / 0.5156 GB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-05/0.4055, allocations: 18.88 kB / 0.5157 GB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001505/0.4071, allocations: 1.708 MB / 0.5173 GB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001723/0.4072, allocations: 173.3 kB / 0.5175 GB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.136e-05/0.4073, allocations: 12.94 kB / 0.5175 GB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006513/0.408, allocations: 96.47 kB / 0.5176 GB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.4082, allocations: 96.44 kB / 0.5177 GB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.444e-05/0.4082, allocations: 33.25 kB / 0.5177 GB, free: 3.898 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001077/0.4083, allocations: 139.8 kB / 0.5179 GB, free: 3.812 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006886/0.409, allocations: 104.3 kB / 0.518 GB, free: 3.809 MB / 330.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.0001492/0.4092, allocations: 124.8 kB / 0.5181 GB, free: 3.695 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.4104, allocations: 0.8265 MB / 0.5189 GB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.4105, allocations: 2.656 kB / 0.5189 GB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004073/0.4109, allocations: 223.7 kB / 0.5191 GB, free: 3.602 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000592/0.4115, allocations: 104.3 kB / 0.5192 GB, free: 3.586 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.4134, allocations: 0.9319 MB / 0.5201 GB, free: 2.891 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006074/0.414, allocations: 0.8729 MB / 0.521 GB, free: 2.125 MB / 330.7 MB Notification: Performance of SimCode: time 5.31e-07/0.414, allocations: 0 / 0.521 GB, free: 2.125 MB / 330.7 MB Notification: Performance of Templates: time 0.0144/0.4284, allocations: 8.439 MB / 0.5292 GB, free: 12.32 MB / 346.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,gain.k,gain.y,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time