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.001738/0.001738, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002346/0.002347, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001379, allocations: 59.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3031, allocations: 50.55 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003887/0.3071, allocations: 2.385 MB / 412.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.3087, allocations: 0.8611 MB / 413.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.3089, allocations: 7.938 kB / 413.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003101/0.3092, allocations: 51.58 kB / 413.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.3095, allocations: 63.48 kB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.31, allocations: 207 kB / 413.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.3105, allocations: 395.5 kB / 413.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.3107, allocations: 103.5 kB / 414 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003118/0.311, allocations: 171.4 kB / 414.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002631/0.3113, allocations: 183.2 kB / 414.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-05/0.3114, allocations: 32 kB / 414.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.809e-05/0.3114, allocations: 36 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.3116, allocations: 103.7 kB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.3117, allocations: 167 kB / 414.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004171/0.3122, allocations: 370.5 kB / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3122, allocations: 0 / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3122, allocations: 3.938 kB / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.3122, allocations: 4 kB / 415 MB, free: 12.44 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.001405/0.3136, allocations: 0.6716 MB / 415.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3137, allocations: 8.031 kB / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.577e-05/0.3138, allocations: 44.56 kB / 415.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004659/0.3142, allocations: 315 kB / 416 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.3144, allocations: 138.3 kB / 416.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.074e-05/0.3145, allocations: 28.38 kB / 416.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.3158, allocations: 0.5661 MB / 416.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.3158, allocations: 0 / 416.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.3159, allocations: 19.94 kB / 416.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.3159, allocations: 11.98 kB / 416.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.3175, allocations: 0.5035 MB / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.3192, allocations: 1.026 MB / 418.3 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.3208, allocations: 0.5063 MB / 418.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006394/0.3215, allocations: 259.4 kB / 419.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.105e-05/0.3216, allocations: 15.97 kB / 419.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.3216, allocations: 38.56 kB / 419.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.194e-06/0.3216, allocations: 0 / 419.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03962/0.3612, allocations: 5.747 MB / 424.9 MB, free: 2.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.3614, allocations: 156.9 kB / 425 MB, free: 2.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003005/0.3617, allocations: 258.5 kB / 425.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.544e-05/0.3618, allocations: 37.69 kB / 425.3 MB, free: 1.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3619, allocations: 149.5 kB / 425.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.3621, allocations: 193.3 kB / 425.7 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000303/0.3624, allocations: 114.6 kB / 425.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3626, allocations: 346.8 kB / 426.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/0.3642, allocations: 0.6188 MB / 426.7 MB, free: 376 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.366, allocations: 0.7929 MB / 427.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003142/0.3692, allocations: 1.247 MB / 428.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.3692, allocations: 0 / 428.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003705/0.3729, allocations: 1.405 MB / 430.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.3729, allocations: 14.91 kB / 430.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.373, allocations: 8 kB / 430.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.373, allocations: 8.188 kB / 430.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.3744, allocations: 215.6 kB / 430.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.064e-05/0.3744, allocations: 15.92 kB / 430.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000998/0.3754, allocations: 99.73 kB / 430.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.187e-05/0.3755, allocations: 31.98 kB / 430.6 MB, free: 12.37 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.0003644/0.3759, allocations: 193.6 kB / 430.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/0.3762, allocations: 157.1 kB / 430.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.3764, allocations: 67.61 kB / 431 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.3765, allocations: 8 kB / 431 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.3765, allocations: 4 kB / 431 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3765, allocations: 3.984 kB / 431 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004906/0.3814, allocations: 2.18 MB / 433.2 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.589e-05/0.3815, allocations: 16.03 kB / 433.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007562/0.3822, allocations: 183.7 kB / 433.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.298e-05/0.3822, allocations: 12 kB / 433.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.036e-05/0.3823, allocations: 24 kB / 433.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-05/0.3823, allocations: 23.92 kB / 433.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/0.3823, allocations: 15.94 kB / 433.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003238/0.3856, allocations: 1.564 MB / 435 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.3858, allocations: 172.6 kB / 435.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.844e-05/0.3859, allocations: 27.98 kB / 435.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005974/0.3865, allocations: 75.98 kB / 435.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001947/0.3867, allocations: 99.66 kB / 435.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.395e-05/0.3868, allocations: 28 kB / 435.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001927/0.387, allocations: 186.1 kB / 435.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.387, allocations: 0 / 435.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000717/0.3877, allocations: 127.9 kB / 435.7 MB, free: 6.863 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.0001959/0.3879, allocations: 139.1 kB / 435.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002906/0.3908, allocations: 1.148 MB / 437 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.3909, allocations: 4.188 kB / 437 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.3919, allocations: 337.9 kB / 437.3 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009708/0.3929, allocations: 151.5 kB / 437.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.3955, allocations: 1.257 MB / 438.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.396, allocations: 0.8324 MB / 439.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.3963, allocations: 51.42 kB / 439.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3963, allocations: 0 / 439.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of Templates: time 0.01219/0.4085, allocations: 7.395 MB / 447 MB, free: 11.38 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