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.001014/0.001013, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001157/0.001158, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.36 kB / 306.9 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1022, allocations: 50.53 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00428/0.1065, allocations: 2.383 MB / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.1084, allocations: 0.8689 MB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002818/0.1088, allocations: 11.94 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003148/0.1091, allocations: 47.58 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.1094, allocations: 67.48 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006566/0.1101, allocations: 199.6 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000477/0.1105, allocations: 391.5 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002405/0.1108, allocations: 99.48 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004189/0.1112, allocations: 171.4 kB / 361.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003271/0.1116, allocations: 183.2 kB / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.004e-05/0.1116, allocations: 36 kB / 361.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.283e-05/0.1117, allocations: 35.94 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.1119, allocations: 107.7 kB / 362 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001737/0.112, allocations: 159.1 kB / 362.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.1125, allocations: 363 kB / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1125, allocations: 0 / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1125, allocations: 0 / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.1125, allocations: 0 / 362.5 MB, free: 9.004 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.001396/0.1139, allocations: 0.6703 MB / 363.2 MB, free: 8.285 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.114, allocations: 8.031 kB / 363.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.1141, allocations: 52.47 kB / 363.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003974/0.1145, allocations: 303.1 kB / 363.6 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.1147, allocations: 138.3 kB / 363.7 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.824e-05/0.1148, allocations: 40.3 kB / 363.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.116, allocations: 0.5638 MB / 364.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.116, allocations: 4 kB / 364.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.779e-05/0.116, allocations: 8 kB / 364.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1161, allocations: 12 kB / 364.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.1175, allocations: 0.5074 MB / 364.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.119, allocations: 1.021 MB / 365.9 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.1205, allocations: 0.5089 MB / 366.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006415/0.1212, allocations: 255.4 kB / 366.6 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-05/0.1213, allocations: 8 kB / 366.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.1213, allocations: 46.5 kB / 366.7 MB, free: 4.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.773e-06/0.1213, allocations: 0 / 366.7 MB, free: 4.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2258/0.3471, allocations: 5.754 MB / 372.4 MB, free: 20.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/0.3472, allocations: 152.4 kB / 372.6 MB, free: 20.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.3475, allocations: 266.2 kB / 372.8 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.769e-05/0.3476, allocations: 36.23 kB / 372.9 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.472e-05/0.3477, allocations: 150.3 kB / 373 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.3479, allocations: 189.5 kB / 373.2 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002895/0.3482, allocations: 114.9 kB / 373.3 MB, free: 20.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.939e-05/0.3483, allocations: 346.3 kB / 373.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.3499, allocations: 0.616 MB / 374.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/0.3516, allocations: 0.8018 MB / 375.1 MB, free: 19.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002953/0.3546, allocations: 1.255 MB / 376.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3546, allocations: 1.25 kB / 376.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003566/0.3581, allocations: 1.393 MB / 377.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.3582, allocations: 7.656 kB / 377.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.3582, allocations: 9.312 kB / 377.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.892e-05/0.3582, allocations: 12.22 kB / 377.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.3595, allocations: 205 kB / 377.9 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.9e-05/0.3596, allocations: 13.19 kB / 378 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009454/0.3605, allocations: 105.5 kB / 378.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.567e-05/0.3606, allocations: 27.27 kB / 378.1 MB, free: 17.84 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.0003251/0.3609, allocations: 198.3 kB / 378.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003169/0.3613, allocations: 163.4 kB / 378.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001538/0.3614, allocations: 67.91 kB / 378.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.3614, allocations: 12.48 kB / 378.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.3615, allocations: 1.969 kB / 378.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.3615, allocations: 4.812 kB / 378.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004673/0.3662, allocations: 2.187 MB / 380.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.3662, allocations: 10.38 kB / 380.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007467/0.367, allocations: 183.3 kB / 380.9 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.777e-05/0.367, allocations: 19.41 kB / 380.9 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.011e-05/0.367, allocations: 23.17 kB / 380.9 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.206e-05/0.3671, allocations: 20.84 kB / 381 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.45e-05/0.3671, allocations: 14.78 kB / 381 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003125/0.3702, allocations: 1.558 MB / 382.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.3704, allocations: 178 kB / 382.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.315e-05/0.3705, allocations: 27.17 kB / 382.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000592/0.3711, allocations: 78.23 kB / 382.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.3714, allocations: 96.12 kB / 382.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/0.3714, allocations: 31.12 kB / 382.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002081/0.3716, allocations: 194.6 kB / 383.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3717, allocations: 0 / 383.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007924/0.3725, allocations: 124 kB / 383.2 MB, free: 15.05 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.0001895/0.3726, allocations: 130.2 kB / 383.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003137/0.3758, allocations: 1.155 MB / 384.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.445e-06/0.3758, allocations: 4.906 kB / 384.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.3769, allocations: 345 kB / 384.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009953/0.3779, allocations: 159.9 kB / 385 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.3807, allocations: 1.232 MB / 386.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/0.3811, allocations: 0.8317 MB / 387.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005802/0.3817, allocations: 101.9 kB / 387.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002722/0.382, allocations: 38.89 kB / 387.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.382, allocations: 0 / 387.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of Templates: time 0.01354/0.3955, allocations: 8.405 MB / 395.6 MB, free: 8.695 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) Reference file matches