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.0008743/0.0008744, allocations: 98.38 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008695/0.0008699, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.591/1.591, allocations: 227.8 MB / 246.9 MB, free: 11.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002384/0.0002383, allocations: 4 kB / 307.8 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1103, allocations: 51.53 MB / 359.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00315/0.1135, allocations: 2.062 MB / 361.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.1153, allocations: 0.8418 MB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1154, allocations: 11.94 kB / 362.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002738/0.1157, allocations: 39.7 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002259/0.116, allocations: 55.67 kB / 362.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.1166, allocations: 171.8 kB / 362.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000419/0.117, allocations: 371.5 kB / 362.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.1172, allocations: 94.36 kB / 363 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.1175, allocations: 151.4 kB / 363.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002681/0.1177, allocations: 163.2 kB / 363.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.344e-05/0.1178, allocations: 16 kB / 363.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.289e-05/0.1179, allocations: 16 kB / 363.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.118, allocations: 87.7 kB / 363.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.1182, allocations: 176.7 kB / 363.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.1185, allocations: 335 kB / 363.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1186, allocations: 0 / 363.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1186, allocations: 0 / 363.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1186, allocations: 0 / 363.9 MB, free: 8.66 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.001275/0.1199, allocations: 0.6353 MB / 364.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.1199, allocations: 8.031 kB / 364.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.754e-05/0.12, allocations: 48.47 kB / 364.6 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.1204, allocations: 303.1 kB / 364.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.1207, allocations: 142.3 kB / 365 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.034e-05/0.1207, allocations: 32.38 kB / 365 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.1221, allocations: 0.5756 MB / 365.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.1221, allocations: 4 kB / 365.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.031e-05/0.1222, allocations: 12 kB / 365.6 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.1222, allocations: 8 kB / 365.6 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.1237, allocations: 0.5386 MB / 366.2 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.1254, allocations: 1.033 MB / 367.2 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.1271, allocations: 0.5219 MB / 367.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007196/0.1279, allocations: 271.3 kB / 368 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.407e-05/0.1279, allocations: 16.14 kB / 368 MB, free: 4.273 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.128, allocations: 38.55 kB / 368 MB, free: 4.227 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.244e-06/0.128, allocations: 4 kB / 368 MB, free: 4.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2307/0.3587, allocations: 6.788 MB / 374.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/0.3588, allocations: 152.6 kB / 375 MB, free: 19.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.3591, allocations: 255.6 kB / 375.2 MB, free: 19.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.283e-05/0.3592, allocations: 37.02 kB / 375.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.064e-05/0.3593, allocations: 153.2 kB / 375.4 MB, free: 19.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.3594, allocations: 192.9 kB / 375.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.3596, allocations: 60.67 kB / 375.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.079e-05/0.3597, allocations: 347 kB / 376 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.3613, allocations: 0.6569 MB / 376.7 MB, free: 18.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/0.363, allocations: 0.8326 MB / 377.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003072/0.3661, allocations: 1.329 MB / 378.8 MB, free: 17.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3661, allocations: 9.312 kB / 378.8 MB, free: 17.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00382/0.3699, allocations: 1.466 MB / 380.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.37, allocations: 6.812 kB / 380.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.37, allocations: 6.156 kB / 380.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.704e-05/0.37, allocations: 9.969 kB / 380.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.3714, allocations: 234 kB / 380.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.3715, allocations: 15.44 kB / 380.6 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.3725, allocations: 120.6 kB / 380.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.969e-05/0.3726, allocations: 30.86 kB / 380.7 MB, free: 17.09 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.0003051/0.3729, allocations: 191.9 kB / 380.9 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.3732, allocations: 162 kB / 381.1 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001805/0.3734, allocations: 67.34 kB / 381.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.3734, allocations: 8.156 kB / 381.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.3734, allocations: 2.156 kB / 381.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.3735, allocations: 5.734 kB / 381.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005119/0.3786, allocations: 2.311 MB / 383.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/0.3786, allocations: 10.06 kB / 383.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007998/0.3794, allocations: 203.6 kB / 383.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.61e-05/0.3794, allocations: 17.38 kB / 383.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.396e-05/0.3795, allocations: 29.22 kB / 383.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.915e-05/0.3795, allocations: 19.48 kB / 383.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.158e-05/0.3796, allocations: 15.69 kB / 383.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/0.383, allocations: 1.683 MB / 385.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.3832, allocations: 175.8 kB / 385.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.453e-05/0.3833, allocations: 34.08 kB / 385.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006336/0.3839, allocations: 95.86 kB / 385.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.3841, allocations: 99.02 kB / 385.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-05/0.3842, allocations: 29.75 kB / 385.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001904/0.3844, allocations: 195.1 kB / 386 MB, free: 14.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3844, allocations: 0 / 386 MB, free: 14.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000786/0.3852, allocations: 123.7 kB / 386.2 MB, free: 14.25 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.0002151/0.3854, allocations: 136.9 kB / 386.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.3885, allocations: 1.193 MB / 387.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3885, allocations: 2.219 kB / 387.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.3896, allocations: 384.8 kB / 387.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.3907, allocations: 158.7 kB / 388 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.393, allocations: 1.435 MB / 389.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.3933, allocations: 0.8295 MB / 390.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005913/0.3939, allocations: 101.8 kB / 390.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000289/0.3942, allocations: 39.89 kB / 390.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3942, allocations: 0 / 390.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01187/0.4061, allocations: 7.726 MB / 398.1 MB, free: 6.371 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.1.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