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.001321/0.001321, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001562, allocations: 62.42 kB / 306.9 MB, free: 1.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.132, allocations: 50.53 MB / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.005879/0.1379, allocations: 2.436 MB / 359.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1401, allocations: 0.8612 MB / 360.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003665/0.1405, allocations: 7.938 kB / 360.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003871/0.1409, allocations: 35.77 kB / 360.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004182/0.1414, allocations: 51.67 kB / 360.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007857/0.1422, allocations: 175.7 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005716/0.1428, allocations: 379.4 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.1431, allocations: 95.38 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004239/0.1435, allocations: 151.5 kB / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004028/0.1439, allocations: 179.2 kB / 361.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.81e-05/0.144, allocations: 20 kB / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.616e-05/0.1441, allocations: 20 kB / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.1442, allocations: 99.64 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.1444, allocations: 155.1 kB / 362.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000465/0.1449, allocations: 255.8 kB / 362.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1449, allocations: 0 / 362.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1449, allocations: 0 / 362.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.1449, allocations: 0 / 362.3 MB, free: 9.598 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.001592/0.1465, allocations: 0.6742 MB / 363 MB, free: 8.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.1466, allocations: 8.031 kB / 363 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.1467, allocations: 48.45 kB / 363 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004857/0.1472, allocations: 303.1 kB / 363.3 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.1474, allocations: 142.3 kB / 363.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.005e-05/0.1475, allocations: 32.31 kB / 363.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.1488, allocations: 0.5678 MB / 364.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.1489, allocations: 7.984 kB / 364.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.1489, allocations: 12 kB / 364.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.1489, allocations: 8 kB / 364.1 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.1504, allocations: 0.5074 MB / 364.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.1521, allocations: 1.017 MB / 365.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.1537, allocations: 0.4985 MB / 366.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005962/0.1543, allocations: 263.4 kB / 366.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.595e-05/0.1544, allocations: 12.12 kB / 366.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.1545, allocations: 42.5 kB / 366.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.354e-06/0.1545, allocations: 0 / 366.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2506/0.4051, allocations: 5.765 MB / 372.2 MB, free: 20.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.4052, allocations: 149.4 kB / 372.3 MB, free: 20.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004143/0.4057, allocations: 259.3 kB / 372.6 MB, free: 20.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.363e-05/0.4058, allocations: 39.02 kB / 372.6 MB, free: 20.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.4059, allocations: 148.6 kB / 372.8 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002501/0.4062, allocations: 189.3 kB / 373 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000355/0.4065, allocations: 119.1 kB / 373.1 MB, free: 20.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4067, allocations: 342.5 kB / 373.4 MB, free: 20 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001736/0.4084, allocations: 0.6215 MB / 374 MB, free: 19.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.4103, allocations: 0.797 MB / 374.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003191/0.4135, allocations: 1.247 MB / 376.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.4135, allocations: 1.156 kB / 376.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003672/0.4172, allocations: 1.398 MB / 377.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.4172, allocations: 6.719 kB / 377.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.4172, allocations: 5.844 kB / 377.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.465e-05/0.4173, allocations: 17.12 kB / 377.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00141/0.4187, allocations: 206.5 kB / 377.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.736e-05/0.4187, allocations: 14.17 kB / 377.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.4198, allocations: 110.1 kB / 377.8 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-05/0.4199, allocations: 26.95 kB / 377.9 MB, free: 18.18 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.0003999/0.4203, allocations: 192.3 kB / 378.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003853/0.4207, allocations: 162.9 kB / 378.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001679/0.4209, allocations: 71.12 kB / 378.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.4209, allocations: 12.66 kB / 378.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/0.4209, allocations: 1 kB / 378.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.4209, allocations: 6.859 kB / 378.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005854/0.4268, allocations: 2.178 MB / 380.5 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/0.4268, allocations: 9.656 kB / 380.5 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007659/0.4276, allocations: 189 kB / 380.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.607e-05/0.4276, allocations: 12.53 kB / 380.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.303e-05/0.4277, allocations: 25.47 kB / 380.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.091e-05/0.4277, allocations: 19.2 kB / 380.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.676e-05/0.4278, allocations: 20.41 kB / 380.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00301/0.4308, allocations: 1.569 MB / 382.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.431, allocations: 179.2 kB / 382.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.113e-05/0.4311, allocations: 29.31 kB / 382.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005719/0.4317, allocations: 74.66 kB / 382.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.4319, allocations: 94.52 kB / 382.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.331e-05/0.432, allocations: 30.77 kB / 382.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.4322, allocations: 194.3 kB / 382.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4322, allocations: 0 / 382.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007208/0.4329, allocations: 123.6 kB / 383 MB, free: 15.39 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.0001832/0.4331, allocations: 133 kB / 383.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002749/0.4359, allocations: 1.119 MB / 384.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.4359, allocations: 1.375 kB / 384.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009936/0.4369, allocations: 341.2 kB / 384.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.4379, allocations: 150.1 kB / 384.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.4404, allocations: 1.431 MB / 386.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.4408, allocations: 0.831 MB / 387 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003723/0.4411, allocations: 40.34 kB / 387.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4412, allocations: 0 / 387.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01262/0.4538, allocations: 7.345 MB / 394.4 MB, free: 9.641 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