Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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 4.1.0-beta.om/package.mo", uses=false) 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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001282, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 205.9 kB / 18.79 MB, free: 4.254 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.463/1.463, allocations: 230.4 MB / 250 MB, free: 9.012 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.001891/0.001891, allocations: 67.84 kB / 367.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2661, allocations: 53.3 MB / 420.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00398/0.2701, allocations: 2.4 MB / 423 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.2717, allocations: 0.8728 MB / 423.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.2719, allocations: 11.94 kB / 423.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.2721, allocations: 51.58 kB / 424 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.2724, allocations: 67.48 kB / 424 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005719/0.2729, allocations: 203.5 kB / 424.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004586/0.2734, allocations: 395.4 kB / 424.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.2736, allocations: 79.5 kB / 424.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003141/0.2739, allocations: 175.4 kB / 424.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.2742, allocations: 187.2 kB / 425 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/0.2742, allocations: 36 kB / 425.1 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.496e-05/0.2743, allocations: 32 kB / 425.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.2744, allocations: 111.6 kB / 425.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.2746, allocations: 163.1 kB / 425.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004271/0.275, allocations: 370.2 kB / 425.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.275, allocations: 0 / 425.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.275, allocations: 0 / 425.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.275, allocations: 3.938 kB / 425.7 MB, free: 3.223 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001264/0.2763, allocations: 0.674 MB / 426.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.2763, allocations: 12.03 kB / 426.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.053e-05/0.2764, allocations: 44.7 kB / 426.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004703/0.2769, allocations: 311.3 kB / 426.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.2771, allocations: 142.3 kB / 426.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.053e-05/0.2771, allocations: 28.38 kB / 426.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.2783, allocations: 0.5777 MB / 427.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.2783, allocations: 4 kB / 427.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.247e-05/0.2783, allocations: 8 kB / 427.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2784, allocations: 8 kB / 427.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2796, allocations: 0.5102 MB / 428.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.2812, allocations: 1.03 MB / 429.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.2827, allocations: 482.5 kB / 429.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005732/0.2833, allocations: 235.3 kB / 429.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.2833, allocations: 4.156 kB / 429.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.2834, allocations: 54.47 kB / 429.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.864e-06/0.2834, allocations: 0 / 429.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03694/0.3203, allocations: 5.757 MB / 435.6 MB, free: 9.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.3204, allocations: 157 kB / 435.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.3207, allocations: 254.6 kB / 436 MB, free: 8.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.115e-05/0.3208, allocations: 37.7 kB / 436 MB, free: 8.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.3209, allocations: 157.7 kB / 436.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.3211, allocations: 206.3 kB / 436.4 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/0.3214, allocations: 114.6 kB / 436.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3216, allocations: 342.8 kB / 436.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.3231, allocations: 0.6188 MB / 437.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001622/0.3247, allocations: 0.7963 MB / 438.3 MB, free: 6.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002864/0.3276, allocations: 1.255 MB / 439.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3276, allocations: 0 / 439.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003432/0.331, allocations: 1.402 MB / 440.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.331, allocations: 8 kB / 440.9 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.331, allocations: 4 kB / 440.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.3311, allocations: 12 kB / 440.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.3324, allocations: 207.7 kB / 441.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.945e-05/0.3324, allocations: 19.95 kB / 441.2 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009229/0.3333, allocations: 95.78 kB / 441.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.898e-05/0.3334, allocations: 31.98 kB / 441.3 MB, free: 3.18 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.0003228/0.3337, allocations: 185.6 kB / 441.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003268/0.3341, allocations: 165.6 kB / 441.6 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/0.3342, allocations: 75.61 kB / 441.7 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.3342, allocations: 8 kB / 441.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3343, allocations: 4 kB / 441.7 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3343, allocations: 4.078 kB / 441.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004666/0.3389, allocations: 2.179 MB / 443.9 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.3389, allocations: 12 kB / 443.9 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007284/0.3397, allocations: 180.5 kB / 444.1 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.376e-05/0.3397, allocations: 16 kB / 444.1 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.194e-05/0.3397, allocations: 28 kB / 444.1 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.046e-05/0.3398, allocations: 31.8 kB / 444.2 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/0.3398, allocations: 15.94 kB / 444.2 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/0.3428, allocations: 1.561 MB / 445.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/0.343, allocations: 176.7 kB / 445.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.782e-05/0.3431, allocations: 35.98 kB / 445.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005511/0.3437, allocations: 71.92 kB / 446 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.3439, allocations: 95.72 kB / 446.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.024e-05/0.3439, allocations: 28 kB / 446.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.3441, allocations: 190 kB / 446.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3441, allocations: 0 / 446.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006435/0.3447, allocations: 124 kB / 446.4 MB, free: 13.65 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.0001805/0.3449, allocations: 138.9 kB / 446.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.3475, allocations: 1.033 MB / 447.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3475, allocations: 4 kB / 447.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000915/0.3484, allocations: 335.2 kB / 447.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000882/0.3493, allocations: 145.2 kB / 448.1 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002608/0.3519, allocations: 1.234 MB / 449.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.3525, allocations: 0.8285 MB / 450.1 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000501/0.353, allocations: 96.09 kB / 450.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.3532, allocations: 47.42 kB / 450.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3532, allocations: 0 / 450.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of Templates: time 0.0155/0.3687, allocations: 8.585 MB / 458.9 MB, free: 1.039 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches