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.0009036/0.0009036, allocations: 96.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009728/0.0009728, allocations: 198.6 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.7 MB / 247.5 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002571/0.0002572, allocations: 8.281 kB / 308.4 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.107, allocations: 51.52 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002755/0.1098, allocations: 2.074 MB / 362 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.1114, allocations: 0.8341 MB / 362.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002196/0.1116, allocations: 7.938 kB / 362.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002901/0.1119, allocations: 47.69 kB / 362.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002489/0.1122, allocations: 55.69 kB / 362.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006135/0.1128, allocations: 175.7 kB / 363.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005128/0.1133, allocations: 375.5 kB / 363.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.1136, allocations: 91.36 kB / 363.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003169/0.1139, allocations: 151.3 kB / 363.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.1142, allocations: 163.3 kB / 363.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.1142, allocations: 16 kB / 363.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.208e-05/0.1143, allocations: 16 kB / 363.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.1144, allocations: 91.66 kB / 364 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.1146, allocations: 168.8 kB / 364.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.1148, allocations: 247.7 kB / 364.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1148, allocations: 0 / 364.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1148, allocations: 0 / 364.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1149, allocations: 0 / 364.4 MB, free: 8.773 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.001217/0.1161, allocations: 0.6431 MB / 365 MB, free: 8.082 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.1161, allocations: 8.031 kB / 365 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.1162, allocations: 44.47 kB / 365.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.1166, allocations: 299.1 kB / 365.4 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002208/0.1169, allocations: 154.2 kB / 365.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.303e-05/0.1169, allocations: 28.38 kB / 365.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.1182, allocations: 0.5834 MB / 366.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1183, allocations: 0 / 366.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/0.1183, allocations: 12 kB / 366.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1183, allocations: 8 kB / 366.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.1198, allocations: 0.5386 MB / 366.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.1214, allocations: 1.025 MB / 367.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.1231, allocations: 0.5141 MB / 368.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006753/0.1238, allocations: 275.3 kB / 368.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.58e-05/0.1238, allocations: 11.98 kB / 368.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.1239, allocations: 38.56 kB / 368.5 MB, free: 4.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.274e-06/0.1239, allocations: 0 / 368.5 MB, free: 4.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2289/0.3528, allocations: 6.802 MB / 375.3 MB, free: 20.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.744e-05/0.3529, allocations: 148.1 kB / 375.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003193/0.3532, allocations: 259.8 kB / 375.7 MB, free: 20.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.611e-05/0.3533, allocations: 36.45 kB / 375.8 MB, free: 20.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.3534, allocations: 155.9 kB / 375.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.3537, allocations: 191.1 kB / 376.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.3538, allocations: 57.22 kB / 376.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.769e-05/0.3539, allocations: 347.7 kB / 376.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.3556, allocations: 0.654 MB / 377.2 MB, free: 19.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.3574, allocations: 0.8359 MB / 378 MB, free: 18.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003281/0.3607, allocations: 1.318 MB / 379.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.3608, allocations: 5.031 kB / 379.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003874/0.3646, allocations: 1.477 MB / 380.8 MB, free: 17.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.3647, allocations: 8 kB / 380.8 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.3647, allocations: 5.562 kB / 380.8 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/0.3647, allocations: 10.59 kB / 380.8 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.3662, allocations: 232.1 kB / 381.1 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.438e-05/0.3662, allocations: 9.453 kB / 381.1 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.3673, allocations: 125.8 kB / 381.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.81e-05/0.3674, allocations: 27.08 kB / 381.2 MB, free: 17.41 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.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.000346/0.3678, allocations: 200 kB / 381.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003426/0.3681, allocations: 157.2 kB / 381.6 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001937/0.3683, allocations: 71.81 kB / 381.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.3683, allocations: 9.453 kB / 381.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/0.3684, allocations: 1.094 kB / 381.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.3684, allocations: 4.406 kB / 381.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005343/0.3737, allocations: 2.313 MB / 384 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.352e-05/0.3738, allocations: 10.25 kB / 384 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008103/0.3746, allocations: 204.9 kB / 384.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.226e-05/0.3746, allocations: 12.97 kB / 384.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.87e-05/0.3747, allocations: 24.83 kB / 384.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.246e-05/0.3747, allocations: 20.88 kB / 384.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.318e-05/0.3747, allocations: 15.53 kB / 384.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003438/0.3782, allocations: 1.689 MB / 385.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002363/0.3784, allocations: 178.3 kB / 386.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.3785, allocations: 30.81 kB / 386.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000662/0.3792, allocations: 99.66 kB / 386.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.3794, allocations: 94.52 kB / 386.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.782e-05/0.3795, allocations: 34.16 kB / 386.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001895/0.3797, allocations: 187.2 kB / 386.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3797, allocations: 0 / 386.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007811/0.3805, allocations: 119.5 kB / 386.7 MB, free: 14.57 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 (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.0001591/0.3806, allocations: 137.9 kB / 386.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003131/0.3838, allocations: 1.194 MB / 388 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.974e-06/0.3838, allocations: 0.9688 kB / 388 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.3849, allocations: 382.5 kB / 388.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.3861, allocations: 159 kB / 388.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.3886, allocations: 1.481 MB / 390 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.389, allocations: 0.8336 MB / 390.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/0.3893, allocations: 41.23 kB / 390.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3893, allocations: 1 kB / 390.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of Templates: time 0.01186/0.4012, allocations: 7.321 MB / 398.2 MB, free: 7.129 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/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