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.00195/0.001957, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002644/0.002644, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.856/2.856, allocations: 227.4 MB / 247.1 MB, free: 9.121 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002371/0.002371, allocations: 64.23 kB / 307.1 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1617, allocations: 50.54 MB / 357.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.01077/0.1725, allocations: 2.435 MB / 360.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007153/0.1798, allocations: 0.8612 MB / 360.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004006/0.1802, allocations: 7.938 kB / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004789/0.1808, allocations: 43.7 kB / 361 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004781/0.1813, allocations: 51.67 kB / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.1824, allocations: 179.7 kB / 361.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008607/0.1833, allocations: 387.5 kB / 361.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.1837, allocations: 99.48 kB / 361.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005637/0.1843, allocations: 179.4 kB / 361.9 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004627/0.1847, allocations: 179.2 kB / 362 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.1849, allocations: 36 kB / 362.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.185, allocations: 36 kB / 362.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.1853, allocations: 111.7 kB / 362.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002935/0.1856, allocations: 167 kB / 362.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004612/0.1902, allocations: 263.7 kB / 362.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.1902, allocations: 0 / 362.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1903, allocations: 0 / 362.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.1903, allocations: 0 / 362.6 MB, free: 9.199 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.002336/0.1926, allocations: 0.6781 MB / 363.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.1927, allocations: 8.031 kB / 363.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.1929, allocations: 44.47 kB / 363.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005554/0.1935, allocations: 299.1 kB / 363.7 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/0.1938, allocations: 146.3 kB / 363.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.966e-05/0.1939, allocations: 28.38 kB / 363.8 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001918/0.1958, allocations: 0.5678 MB / 364.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.1959, allocations: 0 / 364.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.757e-05/0.1959, allocations: 12 kB / 364.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.196, allocations: 11.94 kB / 364.4 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006489/0.2025, allocations: 0.5113 MB / 364.9 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002856/0.2054, allocations: 1.029 MB / 366 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002842/0.2083, allocations: 0.5024 MB / 366.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.2095, allocations: 259.4 kB / 366.7 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.16e-05/0.2096, allocations: 8 kB / 366.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.987e-05/0.2097, allocations: 38.55 kB / 366.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 5.421e-06/0.2097, allocations: 4 kB / 366.8 MB, free: 4.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.3672/0.5769, allocations: 5.755 MB / 372.5 MB, free: 20.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001755/0.5772, allocations: 145.7 kB / 372.7 MB, free: 20.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005407/0.5777, allocations: 266.9 kB / 372.9 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/0.5779, allocations: 36.23 kB / 373 MB, free: 20.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.5781, allocations: 149.5 kB / 373.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003416/0.5785, allocations: 188.2 kB / 373.3 MB, free: 20.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004843/0.579, allocations: 122.1 kB / 373.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.5791, allocations: 345.9 kB / 373.7 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003071/0.5822, allocations: 0.6144 MB / 374.4 MB, free: 19.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003119/0.5854, allocations: 0.8009 MB / 375.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005356/0.5907, allocations: 1.254 MB / 376.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.28e-05/0.5908, allocations: 2.938 kB / 376.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006683/0.5975, allocations: 1.391 MB / 377.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.562e-05/0.5976, allocations: 7.062 kB / 377.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/0.5977, allocations: 5.625 kB / 377.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.585e-05/0.5977, allocations: 12.19 kB / 377.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/0.6002, allocations: 208.7 kB / 378 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.322e-05/0.6003, allocations: 10.67 kB / 378 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.6019, allocations: 109.9 kB / 378.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.6021, allocations: 27.14 kB / 378.2 MB, free: 17.86 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.0005033/0.6026, allocations: 194.7 kB / 378.4 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005349/0.6032, allocations: 171.1 kB / 378.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002165/0.6034, allocations: 67.84 kB / 378.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/0.6034, allocations: 8.797 kB / 378.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.341e-05/0.6035, allocations: 1.219 kB / 378.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/0.6035, allocations: 3.953 kB / 378.6 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007584/0.6111, allocations: 2.195 MB / 380.8 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.292e-05/0.6112, allocations: 8.797 kB / 380.8 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.6125, allocations: 182.5 kB / 381 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.785e-05/0.6125, allocations: 13.72 kB / 381 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.149e-05/0.6126, allocations: 24.53 kB / 381 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.603e-05/0.6127, allocations: 19.59 kB / 381.1 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.041e-05/0.6127, allocations: 18.94 kB / 381.1 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005029/0.6177, allocations: 1.562 MB / 382.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005486/0.6183, allocations: 179 kB / 382.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.6185, allocations: 29.16 kB / 382.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.6196, allocations: 77.55 kB / 382.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003847/0.6201, allocations: 93.16 kB / 383 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.6202, allocations: 35.17 kB / 383 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003703/0.6206, allocations: 189.9 kB / 383.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.385e-06/0.6206, allocations: 0 / 383.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001285/0.6219, allocations: 127.6 kB / 383.3 MB, free: 15.07 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.0003297/0.6222, allocations: 137.3 kB / 383.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.005489/0.6277, allocations: 1.154 MB / 384.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.136e-05/0.6278, allocations: 1.312 kB / 384.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002003/0.6298, allocations: 340.4 kB / 385 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001902/0.6318, allocations: 146 kB / 385.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004503/0.6363, allocations: 1.427 MB / 386.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/0.6369, allocations: 0.838 MB / 387.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006195/0.6375, allocations: 50.28 kB / 387.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6375, allocations: 0 / 387.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of Templates: time 0.02018/0.6577, allocations: 7.343 MB / 394.8 MB, free: 9.285 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