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.0008647/0.0008649, allocations: 102.1 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000958/0.000958, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.0002072, allocations: 4 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1013, allocations: 51.53 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002474/0.1038, allocations: 1.989 MB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.1053, allocations: 0.85 MB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.1055, allocations: 7.938 kB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.1058, allocations: 39.7 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.106, allocations: 51.67 kB / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005563/0.1065, allocations: 167.7 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004367/0.107, allocations: 347.5 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.1072, allocations: 82.09 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.1075, allocations: 139.4 kB / 362.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.1078, allocations: 155.4 kB / 362.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.1078, allocations: 16 kB / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.614e-05/0.1079, allocations: 16 kB / 362.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.108, allocations: 87.7 kB / 362.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.782e-05/0.1081, allocations: 77.52 kB / 362.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002627/0.1084, allocations: 251.6 kB / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1084, allocations: 0 / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1084, allocations: 4 kB / 362.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.1084, allocations: 3.938 kB / 362.9 MB, free: 9.371 MB / 302.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.0012/0.1096, allocations: 0.6352 MB / 363.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.1097, allocations: 8.031 kB / 363.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.1098, allocations: 51.53 kB / 363.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.1102, allocations: 286 kB / 363.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.1104, allocations: 141.7 kB / 364 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.722e-05/0.1105, allocations: 35.97 kB / 364 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.1116, allocations: 0.5832 MB / 364.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1116, allocations: 4 kB / 364.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.1117, allocations: 12 kB / 364.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1117, allocations: 4 kB / 364.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/0.1129, allocations: 0.5308 MB / 365.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.1145, allocations: 1.033 MB / 366.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.1159, allocations: 0.518 MB / 366.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005601/0.1164, allocations: 283.8 kB / 367 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.621e-05/0.1165, allocations: 4.188 kB / 367 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.1165, allocations: 38.75 kB / 367 MB, free: 4.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.003e-06/0.1165, allocations: 0 / 367 MB, free: 4.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1984/0.3149, allocations: 6.794 MB / 373.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.633e-05/0.3151, allocations: 149.3 kB / 374 MB, free: 19.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003335/0.3154, allocations: 262.8 kB / 374.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.394e-05/0.3155, allocations: 36.61 kB / 374.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.394e-05/0.3156, allocations: 149.7 kB / 374.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.3158, allocations: 190.9 kB / 374.6 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.687e-05/0.3159, allocations: 12.88 kB / 374.6 MB, free: 19.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.197e-05/0.316, allocations: 351.2 kB / 374.9 MB, free: 19.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.3176, allocations: 0.647 MB / 375.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001512/0.3191, allocations: 0.836 MB / 376.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.3205, allocations: 0.6067 MB / 377 MB, free: 18.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.3205, allocations: 6.469 kB / 377 MB, free: 18.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003294/0.3238, allocations: 1.459 MB / 378.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.3238, allocations: 6.75 kB / 378.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.3239, allocations: 6.719 kB / 378.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.3239, allocations: 10.44 kB / 378.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.3252, allocations: 234.1 kB / 378.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.222e-05/0.3252, allocations: 15.3 kB / 378.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008761/0.3261, allocations: 121.1 kB / 378.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-05/0.3262, allocations: 30.59 kB / 378.9 MB, free: 17.8 MB / 302.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.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 initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002595/0.3264, allocations: 192.8 kB / 379.1 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002885/0.3267, allocations: 154.5 kB / 379.3 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001723/0.3269, allocations: 68.45 kB / 379.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.3269, allocations: 11.91 kB / 379.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/0.327, allocations: 4.797 kB / 379.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.327, allocations: 5.328 kB / 379.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005175/0.3321, allocations: 2.304 MB / 381.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.091e-05/0.3322, allocations: 10.28 kB / 381.7 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007793/0.333, allocations: 205.8 kB / 381.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-05/0.333, allocations: 15.31 kB / 381.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.229e-05/0.3331, allocations: 28.2 kB / 381.9 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.301e-05/0.3331, allocations: 23.75 kB / 381.9 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.496e-05/0.3331, allocations: 19.25 kB / 381.9 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003132/0.3363, allocations: 1.666 MB / 383.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.3365, allocations: 178.4 kB / 383.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.011e-05/0.3366, allocations: 33.7 kB / 383.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005466/0.3371, allocations: 97 kB / 383.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.3373, allocations: 102.7 kB / 384 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-05/0.3374, allocations: 30.64 kB / 384 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.3376, allocations: 191.6 kB / 384.2 MB, free: 15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3376, allocations: 1.469 kB / 384.2 MB, free: 15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007652/0.3384, allocations: 123.3 kB / 384.3 MB, free: 14.98 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001767/0.3386, allocations: 140.7 kB / 384.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.3414, allocations: 1.193 MB / 385.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3415, allocations: 1.188 kB / 385.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009736/0.3424, allocations: 381.7 kB / 386.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008866/0.3433, allocations: 148.5 kB / 386.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.3457, allocations: 1.392 MB / 387.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.346, allocations: 0.8296 MB / 388.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005978/0.3466, allocations: 102.8 kB / 388.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/0.3469, allocations: 43.44 kB / 388.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3469, allocations: 0 / 388.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01121/0.3581, allocations: 7.501 MB / 396.1 MB, free: 8.465 MB / 302.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/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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,gain.k,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,super.factor,super.inferFactor,time