Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, allocations: 117.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 212.7 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.405/1.405, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 59.91 kB / 359.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2211, allocations: 50.55 MB / 410.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003333/0.2244, allocations: 2.155 MB / 412.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.2257, allocations: 0.6938 MB / 413 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.64e-05/0.2258, allocations: 4 kB / 413 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002519/0.226, allocations: 43.64 kB / 413.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.2262, allocations: 51.61 kB / 413.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.2265, allocations: 123.8 kB / 413.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004253/0.2269, allocations: 339.2 kB / 413.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.2271, allocations: 64.3 kB / 413.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002818/0.2274, allocations: 151.5 kB / 413.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.2276, allocations: 147.5 kB / 413.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.871e-05/0.2276, allocations: 28 kB / 414 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.934e-05/0.2277, allocations: 31.94 kB / 414 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.2278, allocations: 91.77 kB / 414.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.2279, allocations: 119.4 kB / 414.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.2283, allocations: 286.8 kB / 414.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.2283, allocations: 0 / 414.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2283, allocations: 4 kB / 414.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2283, allocations: 0 / 414.5 MB, free: 13.33 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001099/0.2294, allocations: 0.5802 MB / 415.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.2294, allocations: 12.03 kB / 415.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.395e-05/0.2295, allocations: 28.8 kB / 415.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.2298, allocations: 258.2 kB / 415.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002066/0.2301, allocations: 134.2 kB / 415.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-05/0.2301, allocations: 27.94 kB / 415.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008523/0.231, allocations: 363.6 kB / 415.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.231, allocations: 3.953 kB / 415.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.231, allocations: 12 kB / 415.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.231, allocations: 4 kB / 415.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.2324, allocations: 0.494 MB / 416.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.2342, allocations: 0.9996 MB / 417.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.2354, allocations: 322 kB / 417.7 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005178/0.236, allocations: 161.2 kB / 417.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.236, allocations: 4.234 kB / 417.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.236, allocations: 34.8 kB / 417.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.723e-06/0.236, allocations: 0 / 417.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02751/0.2636, allocations: 5.81 MB / 423.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.2636, allocations: 55.84 kB / 423.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.2639, allocations: 206.2 kB / 424 MB, free: 3.539 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.112e-05/0.2639, allocations: 33.7 kB / 424 MB, free: 3.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.264, allocations: 153 kB / 424.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.2642, allocations: 178.5 kB / 424.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.2644, allocations: 98.14 kB / 424.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.2646, allocations: 334.8 kB / 424.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.2659, allocations: 472.7 kB / 425.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.2673, allocations: 0.5177 MB / 425.7 MB, free: 1.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002491/0.2698, allocations: 0.8032 MB / 426.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2698, allocations: 3.938 kB / 426.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002904/0.2727, allocations: 0.9907 MB / 427.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.2728, allocations: 7.938 kB / 427.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.2728, allocations: 0 / 427.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.2728, allocations: 4 kB / 427.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000998/0.2738, allocations: 167.8 kB / 427.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2738, allocations: 4 kB / 427.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006971/0.2745, allocations: 87.92 kB / 427.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.2745, allocations: 19.94 kB / 427.8 MB, free: 15.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002333/0.2748, allocations: 157.7 kB / 428 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.29e-05/0.2749, allocations: 31.75 kB / 428 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.275, allocations: 47.31 kB / 428 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.275, allocations: 7.984 kB / 428 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.275, allocations: 0 / 428 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.275, allocations: 8 kB / 428 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004324/0.2793, allocations: 1.885 MB / 429.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.2794, allocations: 15.98 kB / 429.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006664/0.28, allocations: 139.8 kB / 430.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.538e-05/0.28, allocations: 15.94 kB / 430.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-05/0.2801, allocations: 20.44 kB / 430.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.62e-05/0.2801, allocations: 23.92 kB / 430.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/0.2801, allocations: 8 kB / 430.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002895/0.283, allocations: 1.233 MB / 431.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001778/0.2832, allocations: 140.9 kB / 431.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.398e-05/0.2832, allocations: 23.98 kB / 431.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000546/0.2838, allocations: 67.92 kB / 431.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.284, allocations: 87.72 kB / 431.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.284, allocations: 20 kB / 431.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001709/0.2842, allocations: 148.3 kB / 431.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2842, allocations: 0 / 431.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004831/0.2847, allocations: 99.94 kB / 432 MB, free: 11.15 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001533/0.2848, allocations: 127.1 kB / 432.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002343/0.2872, allocations: 0.775 MB / 432.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.2872, allocations: 256 / 432.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000983/0.2881, allocations: 329.5 kB / 433.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005889/0.2887, allocations: 55.91 kB / 433.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.2909, allocations: 1.024 MB / 434.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.2913, allocations: 0.7801 MB / 435 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003825/0.2917, allocations: 79.2 kB / 435.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.2919, allocations: 31.44 kB / 435.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2919, allocations: 0 / 435.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of Templates: time 0.01079/0.3027, allocations: 5.815 MB / 441 MB, free: 2 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches