Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 203.6 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 245.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008037/0.0008038, allocations: 103.1 kB / 297.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002098/0.0002099, allocations: 4 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2156, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09099/0.3067, allocations: 81.51 MB / 490.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.3069, allocations: 79.94 kB / 490.2 MB, free: 10 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01875/0.3257, allocations: 6.604 MB / 496.8 MB, free: 3.395 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3257, allocations: 0 / 496.8 MB, free: 3.395 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.3257, allocations: 4 kB / 496.9 MB, free: 3.391 MB / 362.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.001052/0.3268, allocations: 0.585 MB / 497.4 MB, free: 2.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3268, allocations: 12.03 kB / 497.4 MB, free: 2.738 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.23e-05/0.3269, allocations: 40.56 kB / 497.5 MB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.3272, allocations: 264 kB / 497.7 MB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/0.3275, allocations: 146.2 kB / 497.9 MB, free: 2.246 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.725e-05/0.3276, allocations: 32.28 kB / 497.9 MB, free: 2.215 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.3287, allocations: 0.5612 MB / 498.5 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.3288, allocations: 8 kB / 498.5 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.3288, allocations: 19.97 kB / 498.5 MB, free: 1.602 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.3288, allocations: 8 kB / 498.5 MB, free: 1.594 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.3302, allocations: 0.5386 MB / 499.1 MB, free: 1.055 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.3318, allocations: 1.029 MB / 0.4884 GB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.3333, allocations: 0.4966 MB / 0.4888 GB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006475/0.3339, allocations: 275.3 kB / 0.4891 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.057e-05/0.334, allocations: 4 kB / 0.4891 GB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.334, allocations: 50.48 kB / 0.4892 GB, free: 15.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.074e-06/0.334, allocations: 0 / 0.4892 GB, free: 15.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.03676/0.3708, allocations: 6.761 MB / 0.4958 GB, free: 8.297 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.371, allocations: 156.9 kB / 0.4959 GB, free: 8.109 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.3712, allocations: 195.1 kB / 0.4961 GB, free: 7.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.747e-05/0.3713, allocations: 37.7 kB / 0.4961 GB, free: 7.867 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.117e-05/0.3714, allocations: 141.5 kB / 0.4963 GB, free: 7.727 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002168/0.3716, allocations: 185.4 kB / 0.4964 GB, free: 7.543 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-05/0.3717, allocations: 16 kB / 0.4965 GB, free: 7.527 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3718, allocations: 342.8 kB / 0.4968 GB, free: 7.184 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001551/0.3734, allocations: 0.6617 MB / 0.4974 GB, free: 6.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/0.375, allocations: 0.8394 MB / 0.4983 GB, free: 5.605 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/0.3781, allocations: 1.332 MB / 0.4996 GB, free: 4.195 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3781, allocations: 4 kB / 0.4996 GB, free: 4.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003568/0.3817, allocations: 1.482 MB / 0.501 GB, free: 2.699 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3817, allocations: 8 kB / 0.501 GB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.3817, allocations: 4 kB / 0.501 GB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.3818, allocations: 8 kB / 0.501 GB, free: 2.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.3831, allocations: 227.8 kB / 0.5012 GB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.997e-05/0.3831, allocations: 24.23 kB / 0.5013 GB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009578/0.3841, allocations: 123.7 kB / 0.5014 GB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.77e-05/0.3842, allocations: 32.22 kB / 0.5014 GB, free: 2.281 MB / 378.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 () * Number of clocked states: 1 (PI.x) * 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.0003364/0.3845, allocations: 186.5 kB / 0.5016 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003255/0.3849, allocations: 157.2 kB / 0.5017 GB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001872/0.3851, allocations: 59.31 kB / 0.5018 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.3851, allocations: 8 kB / 0.5018 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.3851, allocations: 7.938 kB / 0.5018 GB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.3851, allocations: 3.984 kB / 0.5018 GB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1914/0.5765, allocations: 2.302 MB / 0.5041 GB, free: 98.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-05/0.5766, allocations: 9.625 kB / 0.5041 GB, free: 98.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008396/0.5774, allocations: 203.7 kB / 0.5043 GB, free: 98.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.156e-05/0.5775, allocations: 17.56 kB / 0.5043 GB, free: 98.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.781e-05/0.5775, allocations: 25.77 kB / 0.5043 GB, free: 98.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-05/0.5776, allocations: 22.94 kB / 0.5043 GB, free: 98.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.507e-05/0.5776, allocations: 15.25 kB / 0.5043 GB, free: 98.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003337/0.5809, allocations: 1.683 MB / 0.506 GB, free: 97.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.5812, allocations: 171.4 kB / 0.5062 GB, free: 97.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.971e-05/0.5812, allocations: 25.48 kB / 0.5062 GB, free: 97.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005888/0.5818, allocations: 99.78 kB / 0.5063 GB, free: 97.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.5821, allocations: 106 kB / 0.5064 GB, free: 97.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.364e-05/0.5821, allocations: 29.5 kB / 0.5064 GB, free: 97.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001356/0.5823, allocations: 147.3 kB / 0.5065 GB, free: 97.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5823, allocations: 1.375 kB / 0.5065 GB, free: 97.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006714/0.583, allocations: 126.8 kB / 0.5067 GB, free: 97.7 MB / 378.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 () * Number of clocked states: 1 (PI.x) * 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.0001681/0.5831, allocations: 145.6 kB / 0.5068 GB, free: 97.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003043/0.5862, allocations: 1.199 MB / 0.508 GB, free: 97.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.5862, allocations: 4.969 kB / 0.508 GB, free: 97.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.5872, allocations: 386 kB / 0.5084 GB, free: 97.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.5883, allocations: 145.2 kB / 0.5085 GB, free: 97.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.5903, allocations: 1.372 MB / 0.5098 GB, free: 96.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.5906, allocations: 0.8142 MB / 0.5106 GB, free: 95.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003338/0.5909, allocations: 41.8 kB / 0.5107 GB, free: 95.71 MB / 378.7 MB Notification: Performance of SimCode: time 7.62e-07/0.5909, allocations: 0 / 0.5107 GB, free: 95.71 MB / 378.7 MB Notification: Performance of Templates: time 0.007991/0.5989, allocations: 7.095 MB / 0.5176 GB, free: 92.74 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches