Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001251/0.001251, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 207.6 kB / 19.41 MB, free: 3.645 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.364/1.364, allocations: 227.7 MB / 247.9 MB, free: 10.2 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.001833/0.001833, allocations: 63.89 kB / 359.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2197, allocations: 50.54 MB / 410.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003627/0.2234, allocations: 2.369 MB / 412.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.2248, allocations: 0.8416 MB / 413.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.2249, allocations: 7.938 kB / 413.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002699/0.2252, allocations: 51.58 kB / 413.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.2253, allocations: 59.55 kB / 413.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004564/0.2258, allocations: 171.6 kB / 413.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.2262, allocations: 391.5 kB / 414.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.2264, allocations: 75.83 kB / 414.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002801/0.2267, allocations: 163.5 kB / 414.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.2269, allocations: 179.2 kB / 414.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.28e-05/0.227, allocations: 32 kB / 414.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.498e-05/0.227, allocations: 39.94 kB / 414.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.2271, allocations: 99.7 kB / 414.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.2273, allocations: 139.3 kB / 414.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003827/0.2277, allocations: 346.4 kB / 415.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2277, allocations: 0 / 415.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2277, allocations: 4 kB / 415.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.2277, allocations: 0 / 415.1 MB, free: 12.5 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001201/0.2289, allocations: 0.6198 MB / 415.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.2289, allocations: 8.031 kB / 415.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.268e-05/0.229, allocations: 48.7 kB / 415.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.2294, allocations: 280.4 kB / 416.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002047/0.2296, allocations: 134.3 kB / 416.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.165e-05/0.2296, allocations: 36.38 kB / 416.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.2308, allocations: 0.5705 MB / 416.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.2308, allocations: 4 kB / 416.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.394e-05/0.2309, allocations: 8 kB / 416.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.2309, allocations: 15.92 kB / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.2323, allocations: 0.5151 MB / 417.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.2338, allocations: 0.9986 MB / 418.3 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.2354, allocations: 486.5 kB / 418.8 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006482/0.2361, allocations: 239.3 kB / 419 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.818e-05/0.2361, allocations: 4 kB / 419.1 MB, free: 8.309 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.2361, allocations: 42.56 kB / 419.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.733e-06/0.2361, allocations: 0 / 419.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03922/0.2753, allocations: 5.728 MB / 424.8 MB, free: 2.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.2755, allocations: 149 kB / 425 MB, free: 2.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.2757, allocations: 200.8 kB / 425.2 MB, free: 2.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.889e-05/0.2757, allocations: 37.7 kB / 425.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.47e-05/0.2758, allocations: 149.8 kB / 425.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/0.276, allocations: 202.3 kB / 425.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002842/0.2763, allocations: 114.6 kB / 425.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2765, allocations: 338.8 kB / 426 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.2781, allocations: 0.6188 MB / 426.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001813/0.28, allocations: 0.7886 MB / 427.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003204/0.2832, allocations: 1.251 MB / 428.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2832, allocations: 0 / 428.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003715/0.2869, allocations: 1.402 MB / 430 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.2869, allocations: 8 kB / 430.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.2869, allocations: 4 kB / 430.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.2869, allocations: 12 kB / 430.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/0.2883, allocations: 215.7 kB / 430.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.2883, allocations: 8.375 kB / 430.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009504/0.2893, allocations: 99.78 kB / 430.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.189e-05/0.2894, allocations: 32.3 kB / 430.4 MB, free: 12.7 MB / 350.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.0003038/0.2897, allocations: 181.5 kB / 430.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003203/0.29, allocations: 169.5 kB / 430.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000178/0.2902, allocations: 63.31 kB / 430.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.2902, allocations: 11.98 kB / 430.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2902, allocations: 0 / 430.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.2902, allocations: 3.984 kB / 430.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004891/0.2951, allocations: 2.171 MB / 433 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-05/0.2951, allocations: 12 kB / 433 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007729/0.2959, allocations: 188.5 kB / 433.2 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-05/0.2959, allocations: 16 kB / 433.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.273e-05/0.2959, allocations: 27.98 kB / 433.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-05/0.296, allocations: 15.94 kB / 433.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-05/0.296, allocations: 15.94 kB / 433.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003324/0.2993, allocations: 1.565 MB / 434.8 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.2995, allocations: 156.8 kB / 435 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.963e-05/0.2996, allocations: 27.98 kB / 435 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/0.3002, allocations: 75.92 kB / 435.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.3004, allocations: 95.72 kB / 435.2 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.335e-05/0.3004, allocations: 35.94 kB / 435.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001333/0.3005, allocations: 144.1 kB / 435.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3005, allocations: 0 / 435.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006312/0.3012, allocations: 116 kB / 435.5 MB, free: 7.258 MB / 350.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.0001635/0.3013, allocations: 138.9 kB / 435.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002823/0.3042, allocations: 1.025 MB / 436.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3042, allocations: 5.312 kB / 436.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.3052, allocations: 338 kB / 437 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008939/0.3061, allocations: 135.2 kB / 437.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.3084, allocations: 1.169 MB / 438.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004593/0.3089, allocations: 0.8168 MB / 439.1 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004533/0.3093, allocations: 91.33 kB / 439.2 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002853/0.3096, allocations: 43.42 kB / 439.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3096, allocations: 0 / 439.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of Templates: time 0.01392/0.3235, allocations: 8.348 MB / 447.6 MB, free: 10.98 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches