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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001566/0.001566, allocations: 117.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002239/0.002239, allocations: 203.8 kB / 18.73 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 59.91 kB / 358.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2799, allocations: 50.54 MB / 409.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003565/0.2835, allocations: 2.334 MB / 411.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.2849, allocations: 0.8105 MB / 412.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.2851, allocations: 7.938 kB / 412.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.2854, allocations: 43.64 kB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.2856, allocations: 59.5 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004393/0.286, allocations: 171 kB / 412.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003588/0.2864, allocations: 367.6 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.2866, allocations: 107.3 kB / 413.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.2869, allocations: 167.5 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.2871, allocations: 171.3 kB / 413.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.614e-05/0.2872, allocations: 32 kB / 413.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.608e-05/0.2872, allocations: 36 kB / 413.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.2874, allocations: 83.8 kB / 413.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.2875, allocations: 155.2 kB / 413.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.2879, allocations: 324 kB / 414 MB, free: 12.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2879, allocations: 0 / 414 MB, free: 12.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2879, allocations: 0 / 414 MB, free: 12.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.2879, allocations: 0 / 414 MB, free: 12.76 MB / 334.1 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.00113/0.289, allocations: 0.6083 MB / 414.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2891, allocations: 12.03 kB / 414.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.749e-05/0.2891, allocations: 40.58 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.2895, allocations: 268.4 kB / 415 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.2897, allocations: 134.2 kB / 415.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.048e-05/0.2898, allocations: 40.22 kB / 415.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.2908, allocations: 0.5377 MB / 415.7 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.2909, allocations: 3.938 kB / 415.7 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.2909, allocations: 12 kB / 415.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.2909, allocations: 4 kB / 415.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.2921, allocations: 0.5113 MB / 416.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.2936, allocations: 1.018 MB / 417.2 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.2951, allocations: 0.5024 MB / 417.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/0.2957, allocations: 258.9 kB / 418 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.207e-05/0.2957, allocations: 16 kB / 418 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.2958, allocations: 42.48 kB / 418 MB, free: 8.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.603e-06/0.2958, allocations: 4 kB / 418 MB, free: 8.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03427/0.3301, allocations: 5.709 MB / 423.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.3302, allocations: 148.9 kB / 423.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.3305, allocations: 198.6 kB / 424.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.037e-05/0.3306, allocations: 37.7 kB / 424.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.915e-05/0.3307, allocations: 145.5 kB / 424.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.3309, allocations: 193.3 kB / 424.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.3311, allocations: 102.7 kB / 424.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3313, allocations: 342.8 kB / 424.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.3327, allocations: 0.6188 MB / 425.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.3343, allocations: 0.8002 MB / 426.3 MB, free: 76 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002706/0.337, allocations: 1.255 MB / 427.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.337, allocations: 0 / 427.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003389/0.3404, allocations: 1.39 MB / 429 MB, free: 13.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.3404, allocations: 11.34 kB / 429 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.3405, allocations: 7.984 kB / 429 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.3405, allocations: 8 kB / 429 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.3418, allocations: 215.7 kB / 429.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/0.3418, allocations: 19.88 kB / 429.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008409/0.3427, allocations: 103.7 kB / 429.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.14e-05/0.3427, allocations: 24 kB / 429.3 MB, free: 12.96 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000318/0.3431, allocations: 193.5 kB / 429.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00029/0.3434, allocations: 157.1 kB / 429.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001514/0.3435, allocations: 55.31 kB / 429.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3435, allocations: 8 kB / 429.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.946e-05/0.3436, allocations: 4 kB / 429.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3436, allocations: 7.922 kB / 429.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004459/0.348, allocations: 2.16 MB / 431.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/0.3481, allocations: 12 kB / 431.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006931/0.3488, allocations: 191.7 kB / 432.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.381e-05/0.3488, allocations: 15.98 kB / 432.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.206e-05/0.3489, allocations: 24 kB / 432.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.409e-05/0.3489, allocations: 19.94 kB / 432.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.361e-05/0.3489, allocations: 15.94 kB / 432.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.3517, allocations: 1.553 MB / 433.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.3519, allocations: 160.6 kB / 433.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.557e-05/0.352, allocations: 27.98 kB / 433.9 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005299/0.3525, allocations: 75.98 kB / 434 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.3527, allocations: 99.66 kB / 434.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.3528, allocations: 28 kB / 434.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.3529, allocations: 144.2 kB / 434.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3529, allocations: 0 / 434.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006747/0.3536, allocations: 124 kB / 434.4 MB, free: 7.539 MB / 350.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001912/0.3538, allocations: 131 kB / 434.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.3564, allocations: 1.144 MB / 435.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3564, allocations: 4 kB / 435.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000915/0.3574, allocations: 342 kB / 436 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008591/0.3582, allocations: 134.2 kB / 436.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.3605, allocations: 1.166 MB / 437.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.3609, allocations: 0.8129 MB / 438.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004499/0.3614, allocations: 99.31 kB / 438.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.3617, allocations: 39.42 kB / 438.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3617, allocations: 0 / 438.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of Templates: time 0.01287/0.3746, allocations: 8.261 MB / 446.5 MB, free: 11.24 MB / 366.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches