Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 111.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.929/1.929, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 55.91 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3011, allocations: 50.54 MB / 409.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004039/0.3052, allocations: 2.393 MB / 412.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.3071, allocations: 0.865 MB / 413.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002649/0.3074, allocations: 11.94 kB / 413.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000341/0.3078, allocations: 47.58 kB / 413.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.3081, allocations: 63.48 kB / 413.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00077/0.3089, allocations: 199.6 kB / 413.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000622/0.3096, allocations: 391.5 kB / 413.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.3098, allocations: 99.48 kB / 414 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003633/0.3102, allocations: 171.4 kB / 414.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/0.3105, allocations: 179.2 kB / 414.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.3107, allocations: 36 kB / 414.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.3108, allocations: 32 kB / 414.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.3109, allocations: 119.6 kB / 414.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.3112, allocations: 163.1 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004765/0.3116, allocations: 368 kB / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3117, allocations: 3.938 kB / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3117, allocations: 0 / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.3117, allocations: 0 / 415 MB, free: 12.55 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.001414/0.3131, allocations: 0.6704 MB / 415.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.3132, allocations: 8.031 kB / 415.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.3133, allocations: 44.56 kB / 415.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005308/0.3138, allocations: 311 kB / 416 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002222/0.3141, allocations: 142.3 kB / 416.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.311e-05/0.3141, allocations: 28.38 kB / 416.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.3154, allocations: 0.5739 MB / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.3154, allocations: 4 kB / 416.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.3154, allocations: 8 kB / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.3155, allocations: 12 kB / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.3169, allocations: 0.5112 MB / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.3185, allocations: 1.03 MB / 418.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.3201, allocations: 0.4946 MB / 418.8 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/0.3207, allocations: 270.7 kB / 419.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.3208, allocations: 4 kB / 419.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.3208, allocations: 38.56 kB / 419.1 MB, free: 8.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.785e-06/0.3208, allocations: 0 / 419.1 MB, free: 8.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03851/0.3594, allocations: 5.755 MB / 424.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.3596, allocations: 149 kB / 425 MB, free: 2.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003757/0.3599, allocations: 262.5 kB / 425.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.3601, allocations: 41.7 kB / 425.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3602, allocations: 145.5 kB / 425.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000245/0.3604, allocations: 193.3 kB / 425.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003475/0.3608, allocations: 118.6 kB / 425.8 MB, free: 1.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.361, allocations: 338.8 kB / 426.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.3627, allocations: 0.6188 MB / 426.7 MB, free: 496 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001822/0.3645, allocations: 0.7925 MB / 427.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003241/0.3677, allocations: 1.255 MB / 428.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.605e-06/0.3678, allocations: 0 / 428.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003861/0.3716, allocations: 1.397 MB / 430.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.3717, allocations: 10.81 kB / 430.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.3717, allocations: 8.312 kB / 430.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.34e-05/0.3718, allocations: 12 kB / 430.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001372/0.3731, allocations: 211.6 kB / 430.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.495e-05/0.3732, allocations: 12.36 kB / 430.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.3742, allocations: 103.7 kB / 430.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.3743, allocations: 28 kB / 430.6 MB, free: 12.5 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.0003799/0.3747, allocations: 197.5 kB / 430.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003808/0.3751, allocations: 169.3 kB / 430.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.3753, allocations: 67.61 kB / 431 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.3753, allocations: 8 kB / 431 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.3753, allocations: 0 / 431 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3754, allocations: 3.984 kB / 431 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005361/0.3807, allocations: 2.188 MB / 433.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.671e-05/0.3808, allocations: 8 kB / 433.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008058/0.3816, allocations: 183.7 kB / 433.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.866e-05/0.3816, allocations: 19.98 kB / 433.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.105e-05/0.3817, allocations: 24 kB / 433.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.922e-05/0.3817, allocations: 19.92 kB / 433.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/0.3817, allocations: 15.94 kB / 433.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00345/0.3852, allocations: 1.561 MB / 435 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003495/0.3856, allocations: 176.5 kB / 435.2 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.08e-05/0.3857, allocations: 31.98 kB / 435.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006404/0.3863, allocations: 75.98 kB / 435.3 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002205/0.3865, allocations: 95.66 kB / 435.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.808e-05/0.3866, allocations: 32 kB / 435.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002033/0.3868, allocations: 182 kB / 435.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3868, allocations: 4 kB / 435.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007526/0.3876, allocations: 120 kB / 435.7 MB, free: 6.973 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.0002176/0.3878, allocations: 150.9 kB / 435.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003162/0.391, allocations: 1.14 MB / 437 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.391, allocations: 0 / 437 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.3921, allocations: 342.2 kB / 437.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.3932, allocations: 162.3 kB / 437.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.3961, allocations: 1.261 MB / 438.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005558/0.3967, allocations: 0.8324 MB / 439.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000369/0.3971, allocations: 39.44 kB / 439.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3971, allocations: 0 / 439.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Templates: time 0.01378/0.4109, allocations: 7.444 MB / 447.1 MB, free: 11.43 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches