Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 108.8 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 191 kB / 18 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 43.94 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2682, allocations: 49.44 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003751/0.272, allocations: 2.381 MB / 403.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.2737, allocations: 0.826 MB / 403.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.2738, allocations: 11.94 kB / 403.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003599/0.2742, allocations: 51.52 kB / 404 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.2745, allocations: 71.48 kB / 404 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005983/0.2751, allocations: 203.5 kB / 404.2 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004216/0.2755, allocations: 395.5 kB / 404.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.2757, allocations: 99.5 kB / 404.7 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.276, allocations: 167.4 kB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.2762, allocations: 175.2 kB / 405.1 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.425e-05/0.2763, allocations: 39.98 kB / 405.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.909e-05/0.2764, allocations: 32 kB / 405.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.2765, allocations: 111.7 kB / 405.2 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.2767, allocations: 159.1 kB / 405.4 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004429/0.2771, allocations: 375.8 kB / 405.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2771, allocations: 0 / 405.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2771, allocations: 0 / 405.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2771, allocations: 3.938 kB / 405.8 MB, free: 3.801 MB / 318.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.00132/0.2785, allocations: 0.6665 MB / 406.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.2785, allocations: 15.89 kB / 406.4 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.762e-05/0.2786, allocations: 44.47 kB / 406.5 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.2791, allocations: 311.1 kB / 406.8 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.2793, allocations: 138.3 kB / 406.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.968e-05/0.2793, allocations: 32.28 kB / 407 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.2805, allocations: 0.5699 MB / 407.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.2805, allocations: 4 kB / 407.5 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.2806, allocations: 12 kB / 407.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.2806, allocations: 4 kB / 407.5 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.2818, allocations: 0.5113 MB / 408.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.2833, allocations: 1.033 MB / 409.1 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.2848, allocations: 0.4985 MB / 409.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005794/0.2854, allocations: 271.4 kB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.62e-05/0.2855, allocations: 4 kB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.2855, allocations: 46.48 kB / 409.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.904e-06/0.2855, allocations: 0 / 409.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03491/0.3204, allocations: 5.752 MB / 415.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.3206, allocations: 152.9 kB / 415.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.3209, allocations: 258.5 kB / 416.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.779e-05/0.3209, allocations: 37.7 kB / 416.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.3211, allocations: 145.5 kB / 416.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.3213, allocations: 193.3 kB / 416.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.3216, allocations: 118.6 kB / 416.5 MB, free: 8.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3217, allocations: 346.8 kB / 416.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.3232, allocations: 0.6149 MB / 417.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/0.3248, allocations: 0.8002 MB / 418.3 MB, free: 6.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002674/0.3275, allocations: 1.24 MB / 419.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3275, allocations: 4 kB / 419.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003147/0.3306, allocations: 1.401 MB / 420.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.3307, allocations: 11.94 kB / 421 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.3307, allocations: 12.22 kB / 421 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.3307, allocations: 12 kB / 421 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.332, allocations: 207.7 kB / 421.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.991e-05/0.332, allocations: 19.92 kB / 421.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008393/0.3328, allocations: 99.73 kB / 421.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.972e-05/0.3329, allocations: 28 kB / 421.3 MB, free: 3.727 MB / 334.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.0003296/0.3333, allocations: 193.6 kB / 421.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002812/0.3336, allocations: 165.1 kB / 421.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001522/0.3337, allocations: 67.61 kB / 421.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.3337, allocations: 8 kB / 421.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3337, allocations: 0 / 421.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.3338, allocations: 7.984 kB / 421.8 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004192/0.338, allocations: 2.183 MB / 423.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.338, allocations: 8 kB / 423.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006671/0.3387, allocations: 179.7 kB / 424.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.3387, allocations: 16 kB / 424.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.015e-05/0.3387, allocations: 27.94 kB / 424.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.391e-05/0.3388, allocations: 19.92 kB / 424.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/0.3388, allocations: 15.94 kB / 424.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.3416, allocations: 1.565 MB / 425.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.3418, allocations: 176.5 kB / 425.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.712e-05/0.3419, allocations: 23.98 kB / 426 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005298/0.3424, allocations: 79.98 kB / 426 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.3426, allocations: 95.66 kB / 426.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.423e-05/0.3427, allocations: 32 kB / 426.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.3429, allocations: 189.9 kB / 426.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3429, allocations: 192 / 426.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006671/0.3436, allocations: 124 kB / 426.5 MB, free: 14.2 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.0002212/0.3438, allocations: 146.8 kB / 426.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002636/0.3464, allocations: 1.132 MB / 427.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.3465, allocations: 8.062 kB / 427.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008752/0.3473, allocations: 337.8 kB / 428.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008713/0.3482, allocations: 154.2 kB / 428.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.3505, allocations: 1.225 MB / 429.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.3509, allocations: 0.8285 MB / 430.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004336/0.3513, allocations: 108 kB / 430.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002661/0.3516, allocations: 43.42 kB / 430.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3516, allocations: 0 / 430.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of Templates: time 0.01503/0.3666, allocations: 8.527 MB / 439 MB, free: 1.535 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches