Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007728/0.0007728, allocations: 91.34 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008343/0.0008342, allocations: 172 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.124/1.124, allocations: 223.3 MB / 242.3 MB, free: 14.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001979/0.0001978, allocations: 8.969 kB / 302.1 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07093/0.07114, allocations: 50.41 MB / 352.5 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.008033/0.07918, allocations: 9.033 MB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004447/0.08364, allocations: 3.038 MB / 364.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008864/0.08454, allocations: 55.75 kB / 364.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.08584, allocations: 0.5785 MB / 365.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001718/0.08757, allocations: 0.6955 MB / 365.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006763/0.08826, allocations: 347.6 kB / 366.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002521/0.09078, allocations: 2.849 MB / 369.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001983/0.09278, allocations: 1.953 MB / 371 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1197/0.2125, allocations: 0.888 MB / 371.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001852/0.2144, allocations: 1.258 MB / 373.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000562/0.215, allocations: 133.6 kB / 373.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008917/0.2159, allocations: 241.1 kB / 373.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007515/0.2166, allocations: 0.6773 MB / 374.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001623/0.2183, allocations: 1.196 MB / 375.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003045/0.2213, allocations: 3.33 MB / 378.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2213, allocations: 0 / 378.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2214, allocations: 0 / 378.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001054/0.2215, allocations: 0 / 378.8 MB, free: 10.93 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.004973/0.2264, allocations: 2.471 MB / 381.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2265, allocations: 15.25 kB / 381.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008858/0.2274, allocations: 288.4 kB / 381.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002162/0.2295, allocations: 1.492 MB / 383 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.2297, allocations: 163.6 kB / 383.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003564/0.2301, allocations: 219.1 kB / 383.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004303/0.2344, allocations: 2.809 MB / 386.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.276e-05/0.2344, allocations: 18.19 kB / 386.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001797/0.2346, allocations: 83.62 kB / 386.3 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.579e-05/0.2347, allocations: 104.7 kB / 386.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003482/0.2382, allocations: 2.365 MB / 388.8 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009335/0.2476, allocations: 8.648 MB / 397.4 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.2493, allocations: 1.72 MB / 399.1 MB, free: 364 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/0.2507, allocations: 0.9805 MB / 400.1 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002343/0.2509, allocations: 200.9 kB / 400.3 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.2509, allocations: 47.06 kB / 400.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.194e-06/0.251, allocations: 2.625 kB / 400.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01126/0.2622, allocations: 6.341 MB / 406.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.2623, allocations: 60.41 kB / 406.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.2641, allocations: 1.441 MB / 408.2 MB, free: 8.961 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.485e-05/0.2641, allocations: 41.7 kB / 408.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006526/0.2648, allocations: 1.046 MB / 409.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002862/0.2651, allocations: 413.5 kB / 409.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.2653, allocations: 117.6 kB / 409.8 MB, free: 7.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.2654, allocations: 357.9 kB / 410.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.2665, allocations: 0.7027 MB / 410.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.2677, allocations: 1.083 MB / 411.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002403/0.2701, allocations: 1.881 MB / 413.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.2701, allocations: 4 kB / 413.8 MB, free: 3.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003558/0.2737, allocations: 2.439 MB / 416.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.2737, allocations: 12 kB / 416.3 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.2738, allocations: 12 kB / 416.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008452/0.2746, allocations: 420.6 kB / 416.7 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.2757, allocations: 333 kB / 417 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005711/0.2814, allocations: 6.465 MB / 423.5 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009165/0.2824, allocations: 107.8 kB / 423.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.997e-05/0.2825, allocations: 56 kB / 423.7 MB, free: 8.898 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008702/0.2833, allocations: 0.6917 MB / 424.3 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.2836, allocations: 156.2 kB / 424.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003335/0.2869, allocations: 2.159 MB / 426.7 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.2869, allocations: 15.98 kB / 426.7 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.2869, allocations: 4 kB / 426.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.287, allocations: 3.984 kB / 426.7 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006449/0.2934, allocations: 4.608 MB / 431.3 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.2934, allocations: 8 kB / 431.3 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008148/0.2943, allocations: 219.3 kB / 431.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009963/0.2953, allocations: 457.8 kB / 432 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-05/0.2954, allocations: 35.97 kB / 432 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006688/0.302, allocations: 7.931 MB / 439.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.3021, allocations: 4 kB / 439.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004262/0.3063, allocations: 3.137 MB / 443.1 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005157/0.3069, allocations: 375 kB / 443.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.3071, allocations: 35.92 kB / 443.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007925/0.3079, allocations: 91.91 kB / 443.6 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.308, allocations: 95.5 kB / 443.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.168e-05/0.3081, allocations: 43.92 kB / 443.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001206/0.3093, allocations: 0.9808 MB / 444.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3093, allocations: 3.938 kB / 444.7 MB, free: 3.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001253/0.3106, allocations: 460 kB / 445.1 MB, free: 2.766 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003168/0.3109, allocations: 201.3 kB / 445.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003074/0.314, allocations: 2.242 MB / 447.6 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.314, allocations: 4 kB / 447.6 MB, free: 316 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002021/0.316, allocations: 1.449 MB / 449 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/0.3182, allocations: 398.2 kB / 449.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006471/0.3246, allocations: 5.618 MB / 455 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/0.326, allocations: 1.788 MB / 456.8 MB, free: 6.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000357/0.3264, allocations: 123.4 kB / 456.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3264, allocations: 0 / 456.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of Templates: time 0.06316/0.3896, allocations: 68.6 MB / 0.5132 GB, free: 2.309 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches