Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001756/0.001756, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009503/0.0009503, allocations: 91 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.098e-05/3.116e-05, allocations: 3.984 kB / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 51.49 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3716/0.4832, allocations: 81.49 MB / 483.5 MB, free: 7.969 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.4835, allocations: 76.17 kB / 483.6 MB, free: 7.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01755/0.501, allocations: 6.598 MB / 490.2 MB, free: 2.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.5011, allocations: 0 / 490.2 MB, free: 2.387 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.5011, allocations: 8 kB / 490.2 MB, free: 2.379 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001059/0.5022, allocations: 0.5701 MB / 490.8 MB, free: 1.789 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.5022, allocations: 8.031 kB / 490.8 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.5024, allocations: 35.72 kB / 490.8 MB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.5028, allocations: 270.3 kB / 491.1 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001967/0.503, allocations: 142.3 kB / 491.2 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.647e-05/0.5031, allocations: 29.12 kB / 491.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008142/0.5039, allocations: 492.7 kB / 491.7 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.504, allocations: 0 / 491.7 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.861e-05/0.504, allocations: 11 kB / 491.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.504, allocations: 8 kB / 491.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006352/0.5047, allocations: 411.2 kB / 492.1 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.5062, allocations: 1.016 MB / 493.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009697/0.5072, allocations: 426.1 kB / 493.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.5075, allocations: 204.7 kB / 493.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.974e-05/0.5076, allocations: 11.94 kB / 493.8 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.5076, allocations: 45.73 kB / 493.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.5076, allocations: 0 / 493.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.008023/0.5156, allocations: 2.072 MB / 495.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.5158, allocations: 148.9 kB / 496 MB, free: 12.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002681/0.5161, allocations: 182.5 kB / 496.2 MB, free: 12.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.9e-05/0.5162, allocations: 37.7 kB / 496.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.5163, allocations: 141.5 kB / 496.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/0.5166, allocations: 189.3 kB / 496.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.393e-05/0.5167, allocations: 20 kB / 496.6 MB, free: 12.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.5169, allocations: 343.4 kB / 496.9 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008833/0.5178, allocations: 481.5 kB / 497.4 MB, free: 11.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.5188, allocations: 0.6496 MB / 498.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000796/0.5196, allocations: 431.1 kB / 498.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.5196, allocations: 0 / 498.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002243/0.5219, allocations: 1.096 MB / 499.6 MB, free: 9.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.5219, allocations: 9.375 kB / 499.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/0.522, allocations: 8 kB / 499.6 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.678e-05/0.522, allocations: 12 kB / 499.6 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.5235, allocations: 228.7 kB / 499.8 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.468e-05/0.5235, allocations: 21.03 kB / 499.8 MB, free: 9.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.5246, allocations: 127.7 kB / 500 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.5247, allocations: 31.92 kB / 0.4883 GB, free: 8.887 MB / 362.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.0002887/0.525, allocations: 149.5 kB / 0.4884 GB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003468/0.5254, allocations: 151.4 kB / 0.4886 GB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002062/0.5256, allocations: 63.08 kB / 0.4886 GB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.5256, allocations: 8 kB / 0.4886 GB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.5256, allocations: 4 kB / 0.4886 GB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.5256, allocations: 7.938 kB / 0.4886 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004177/0.5298, allocations: 2.006 MB / 0.4906 GB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.21e-05/0.5299, allocations: 15.98 kB / 0.4906 GB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008818/0.5308, allocations: 200.5 kB / 0.4908 GB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.138e-05/0.5308, allocations: 16 kB / 0.4908 GB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.434e-05/0.5309, allocations: 28 kB / 0.4909 GB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.605e-05/0.5309, allocations: 19.92 kB / 0.4909 GB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/0.5309, allocations: 19.94 kB / 0.4909 GB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/0.533, allocations: 1.757 MB / 0.4926 GB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.5332, allocations: 168.6 kB / 0.4928 GB, free: 3.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.7e-05/0.5333, allocations: 27.98 kB / 0.4928 GB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006601/0.534, allocations: 95.98 kB / 0.4929 GB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.5342, allocations: 107.7 kB / 0.493 GB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.523e-05/0.5343, allocations: 28 kB / 0.493 GB, free: 3.395 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000201/0.5345, allocations: 150.4 kB / 0.4932 GB, free: 3.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5345, allocations: 0 / 0.4932 GB, free: 3.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006853/0.5352, allocations: 124 kB / 0.4933 GB, free: 3.129 MB / 362.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.0001982/0.5354, allocations: 146.9 kB / 0.4934 GB, free: 2.977 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.5369, allocations: 0.8776 MB / 0.4943 GB, free: 2.105 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.5369, allocations: 0 / 0.4943 GB, free: 2.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000487/0.5374, allocations: 238.3 kB / 0.4945 GB, free: 1.875 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006001/0.538, allocations: 123.4 kB / 0.4946 GB, free: 1.758 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.54, allocations: 0.9695 MB / 0.4956 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.5405, allocations: 0.821 MB / 0.4964 GB, free: 15.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000616/0.5412, allocations: 91.38 kB / 0.4965 GB, free: 15.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/0.5415, allocations: 42.05 kB / 0.4965 GB, free: 15.66 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.5415, allocations: 0 / 0.4965 GB, free: 15.66 MB / 378.7 MB Notification: Performance of Templates: time 0.01316/0.5547, allocations: 7.29 MB / 0.5036 GB, free: 8.422 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,gain.k,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.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,super.factor,super.inferFactor,time