Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001642/0.001642, allocations: 196.7 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.445/1.445, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 91.08 kB / 292.1 MB, free: 5.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.011e-05/4.05e-05, allocations: 4 kB / 350.5 MB, free: 2.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 51.48 MB / 402 MB, free: 15.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3719/0.4836, allocations: 80.18 MB / 482.2 MB, free: 9.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.4839, allocations: 71.97 kB / 482.3 MB, free: 9.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01471/0.4986, allocations: 5.671 MB / 487.9 MB, free: 4.434 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4986, allocations: 4 kB / 487.9 MB, free: 4.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.4986, allocations: 4 kB / 487.9 MB, free: 4.426 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.000814/0.4995, allocations: 0.5331 MB / 488.5 MB, free: 3.871 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.4995, allocations: 12.03 kB / 488.5 MB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.627e-05/0.4996, allocations: 27.72 kB / 488.5 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/0.4999, allocations: 249.9 kB / 488.8 MB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.5, allocations: 140 kB / 488.9 MB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.5001, allocations: 21.42 kB / 488.9 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/0.5005, allocations: 311.8 kB / 489.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.5006, allocations: 0 / 489.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.5006, allocations: 13.44 kB / 489.2 MB, free: 3.184 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.5006, allocations: 4 kB / 489.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005492/0.5012, allocations: 391.2 kB / 489.6 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.5026, allocations: 1.023 MB / 490.6 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005152/0.5032, allocations: 266.1 kB / 490.9 MB, free: 1.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.5033, allocations: 128.7 kB / 491 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-05/0.5034, allocations: 4 kB / 491 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.293e-05/0.5034, allocations: 37.92 kB / 491.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.432e-06/0.5034, allocations: 0 / 491.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.007936/0.5114, allocations: 3.09 MB / 494.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.5114, allocations: 59.84 kB / 494.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/0.5117, allocations: 182.2 kB / 494.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-05/0.5118, allocations: 34.55 kB / 494.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.512, allocations: 156.7 kB / 494.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.5122, allocations: 177.4 kB / 494.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.039e-05/0.5123, allocations: 15.94 kB / 494.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.5125, allocations: 334.8 kB / 495.1 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008434/0.5133, allocations: 321.1 kB / 495.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009208/0.5143, allocations: 394.4 kB / 495.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007034/0.515, allocations: 263.2 kB / 496 MB, free: 12.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.515, allocations: 3.953 kB / 496.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001947/0.517, allocations: 0.7222 MB / 496.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.517, allocations: 4 kB / 496.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.517, allocations: 0 / 496.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.517, allocations: 4 kB / 496.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.5186, allocations: 187.9 kB / 497 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.5186, allocations: 4 kB / 497 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.5197, allocations: 107.9 kB / 497.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-05/0.5198, allocations: 16 kB / 497.1 MB, free: 11.84 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.0002355/0.5201, allocations: 130.4 kB / 497.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.5202, allocations: 31.61 kB / 497.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000191/0.5204, allocations: 51.08 kB / 497.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.5204, allocations: 12 kB / 497.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.5205, allocations: 0.8125 kB / 497.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5205, allocations: 0 / 497.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004838/0.5253, allocations: 1.727 MB / 499 MB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/0.5254, allocations: 8 kB / 499 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009483/0.5263, allocations: 163.8 kB / 499.2 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.126e-05/0.5264, allocations: 12 kB / 499.2 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.246e-05/0.5264, allocations: 26.08 kB / 499.2 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.958e-05/0.5265, allocations: 23.92 kB / 499.3 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.28e-05/0.5265, allocations: 11.94 kB / 499.3 MB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.5288, allocations: 1.331 MB / 0.4889 GB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.5291, allocations: 151.1 kB / 0.489 GB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.226e-05/0.5292, allocations: 23.94 kB / 0.489 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009056/0.5301, allocations: 95.92 kB / 0.4891 GB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002693/0.5304, allocations: 95.7 kB / 0.4892 GB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.471e-05/0.5304, allocations: 24 kB / 0.4892 GB, free: 7.414 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000207/0.5307, allocations: 154.4 kB / 0.4894 GB, free: 7.266 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5307, allocations: 3.938 kB / 0.4894 GB, free: 7.262 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007757/0.5315, allocations: 96 kB / 0.4895 GB, free: 7.168 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.0002224/0.5317, allocations: 138.9 kB / 0.4896 GB, free: 7.023 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001512/0.5332, allocations: 0.6075 MB / 0.4902 GB, free: 6.422 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/0.5333, allocations: 8.25 kB / 0.4902 GB, free: 6.414 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006305/0.5339, allocations: 221.2 kB / 0.4904 GB, free: 6.199 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006124/0.5345, allocations: 52.47 kB / 0.4905 GB, free: 6.148 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.5369, allocations: 0.8382 MB / 0.4913 GB, free: 5.191 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004806/0.5374, allocations: 0.7887 MB / 0.4921 GB, free: 4.371 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008057/0.5382, allocations: 74.94 kB / 0.4921 GB, free: 4.301 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.5385, allocations: 35.44 kB / 0.4922 GB, free: 4.266 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5385, allocations: 0 / 0.4922 GB, free: 4.266 MB / 362.7 MB Notification: Performance of Templates: time 0.01331/0.5518, allocations: 5.108 MB / 0.4972 GB, free: 15.22 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches