Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001536/0.001536, allocations: 108.7 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001658/0.001658, allocations: 207.9 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.466/1.466, allocations: 230.4 MB / 251.1 MB, free: 8.508 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 75.81 kB / 368.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2749, allocations: 53.31 MB / 422.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004442/0.2794, allocations: 2.35 MB / 424.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0017/0.2811, allocations: 0.8067 MB / 425.4 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.2812, allocations: 7.938 kB / 425.4 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002928/0.2815, allocations: 51.56 kB / 425.5 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.2817, allocations: 67.55 kB / 425.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.2823, allocations: 155.7 kB / 425.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004546/0.2827, allocations: 379.5 kB / 426 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.2829, allocations: 71.34 kB / 426.1 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003415/0.2832, allocations: 167.5 kB / 426.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.2835, allocations: 175.2 kB / 426.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.354e-05/0.2836, allocations: 36 kB / 426.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.057e-05/0.2836, allocations: 36 kB / 426.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.2837, allocations: 95.72 kB / 426.6 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.2839, allocations: 143.2 kB / 426.8 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.2843, allocations: 326.1 kB / 427.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2843, allocations: 0 / 427.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2843, allocations: 0 / 427.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2843, allocations: 0 / 427.1 MB, free: 3.008 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.001412/0.2857, allocations: 0.6236 MB / 427.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.2857, allocations: 8.031 kB / 427.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.656e-05/0.2858, allocations: 36.75 kB / 427.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.2862, allocations: 276.4 kB / 428 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002094/0.2864, allocations: 138.2 kB / 428.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.828e-05/0.2865, allocations: 36.31 kB / 428.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.2879, allocations: 0.541 MB / 428.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.2879, allocations: 0 / 428.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.799e-05/0.2879, allocations: 12 kB / 428.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.288, allocations: 8 kB / 428.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.2892, allocations: 0.5151 MB / 429.3 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.2909, allocations: 1.002 MB / 430.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.2926, allocations: 490.5 kB / 430.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005799/0.2931, allocations: 240.8 kB / 431 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.9e-05/0.2932, allocations: 7.938 kB / 431 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.2932, allocations: 42.55 kB / 431 MB, free: 14.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.633e-06/0.2932, allocations: 0 / 431 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03912/0.3323, allocations: 5.725 MB / 436.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.3325, allocations: 153.3 kB / 436.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.3327, allocations: 194.6 kB / 437.1 MB, free: 8.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.317e-05/0.3328, allocations: 33.7 kB / 437.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.3329, allocations: 149.7 kB / 437.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/0.3331, allocations: 206.3 kB / 437.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002821/0.3334, allocations: 106.7 kB / 437.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3336, allocations: 338.8 kB / 437.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001576/0.3351, allocations: 0.6188 MB / 438.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.3368, allocations: 0.8041 MB / 439.3 MB, free: 6.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002963/0.3398, allocations: 1.247 MB / 440.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3398, allocations: 0 / 440.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003471/0.3433, allocations: 1.402 MB / 442 MB, free: 3.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.3433, allocations: 8 kB / 442 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3433, allocations: 4 kB / 442 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.135e-05/0.3433, allocations: 12.25 kB / 442 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.3447, allocations: 215.7 kB / 442.2 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.931e-05/0.3447, allocations: 11.94 kB / 442.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009292/0.3457, allocations: 99.77 kB / 442.3 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-05/0.3457, allocations: 32 kB / 442.4 MB, free: 3.23 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.0003676/0.3461, allocations: 185.5 kB / 442.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003356/0.3464, allocations: 153.4 kB / 442.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001889/0.3466, allocations: 63.31 kB / 442.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3466, allocations: 8 kB / 442.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.3467, allocations: 3.984 kB / 442.8 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.3467, allocations: 0 / 442.8 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004857/0.3515, allocations: 2.168 MB / 444.9 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/0.3515, allocations: 16.03 kB / 444.9 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000759/0.3523, allocations: 183.7 kB / 445.1 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.571e-05/0.3523, allocations: 12 kB / 445.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/0.3524, allocations: 24 kB / 445.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.82e-05/0.3524, allocations: 19.94 kB / 445.2 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/0.3524, allocations: 15.94 kB / 445.2 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/0.3557, allocations: 1.553 MB / 446.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.3559, allocations: 164.8 kB / 446.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.037e-05/0.356, allocations: 35.92 kB / 446.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005695/0.3565, allocations: 83.97 kB / 447 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.3568, allocations: 91.67 kB / 447.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-05/0.3568, allocations: 28 kB / 447.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001494/0.357, allocations: 148.2 kB / 447.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.357, allocations: 4 kB / 447.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007027/0.3577, allocations: 120 kB / 447.4 MB, free: 13.8 MB / 366.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.0002007/0.3579, allocations: 142.9 kB / 447.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002786/0.3607, allocations: 1.023 MB / 448.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.168e-06/0.3607, allocations: 8.062 kB / 448.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009786/0.3616, allocations: 329.9 kB / 448.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009198/0.3626, allocations: 128.5 kB / 449 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.3651, allocations: 1.169 MB / 450.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005352/0.3656, allocations: 0.8129 MB / 451 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004968/0.3661, allocations: 99.25 kB / 451.1 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/0.3664, allocations: 39.42 kB / 451.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3664, allocations: 0 / 451.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of Templates: time 0.01453/0.381, allocations: 8.542 MB / 459.7 MB, free: 1.332 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches