Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 207.8 kB / 19.25 MB, free: 3.941 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.416/1.416, allocations: 227.7 MB / 247.7 MB, free: 10.37 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.002012/0.002012, allocations: 56.88 kB / 307.9 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1067, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01352/0.1202, allocations: 10.35 MB / 368.8 MB, free: 3.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008084/0.1283, allocations: 3.493 MB / 372.3 MB, free: 48 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.1618/0.2902, allocations: 59.11 kB / 372.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002615/0.2929, allocations: 0.7634 MB / 373.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002848/0.2958, allocations: 0.8359 MB / 373.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009738/0.2967, allocations: 419.3 kB / 374.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003498/0.3002, allocations: 2.745 MB / 377.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002542/0.3028, allocations: 2.416 MB / 379.5 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002254/0.3051, allocations: 1.261 MB / 380.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002611/0.3077, allocations: 1.583 MB / 382.3 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007665/0.3085, allocations: 334.4 kB / 382.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.3098, allocations: 441.9 kB / 383.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.3108, allocations: 0.9345 MB / 384 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00199/0.3128, allocations: 1.519 MB / 385.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004609/0.3174, allocations: 4.332 MB / 389.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3174, allocations: 0.8125 kB / 389.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3175, allocations: 3.938 kB / 389.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001049/0.3176, allocations: 1.062 kB / 389.9 MB, free: 4.719 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006545/0.3241, allocations: 3.066 MB / 393 MB, free: 2.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.3242, allocations: 9.125 kB / 393 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.3253, allocations: 315.3 kB / 393.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002541/0.3278, allocations: 1.571 MB / 394.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.328, allocations: 172.4 kB / 395 MB, free: 1.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003221/0.3283, allocations: 223.9 kB / 395.2 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004915/0.3332, allocations: 2.919 MB / 398.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.862e-05/0.3333, allocations: 10.55 kB / 398.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002236/0.3335, allocations: 92.34 kB / 398.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.3337, allocations: 116.6 kB / 398.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004229/0.3379, allocations: 2.434 MB / 400.8 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01632/0.3542, allocations: 9.12 MB / 409.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002611/0.3569, allocations: 1.69 MB / 411.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001896/0.3588, allocations: 1.002 MB / 412.6 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003308/0.3591, allocations: 206 kB / 412.8 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/0.3592, allocations: 51.53 kB / 412.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.216e-06/0.3592, allocations: 0 / 412.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01619/0.3754, allocations: 6.567 MB / 419.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.3755, allocations: 64.41 kB / 419.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002626/0.3781, allocations: 1.569 MB / 421.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.3783, allocations: 49.7 kB / 421.1 MB, free: 9.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009585/0.3792, allocations: 1.106 MB / 422.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004233/0.3797, allocations: 434.4 kB / 422.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000469/0.3801, allocations: 268.6 kB / 422.9 MB, free: 7.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3803, allocations: 309.1 kB / 423.2 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001303/0.3816, allocations: 0.7066 MB / 423.9 MB, free: 6.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/0.3833, allocations: 1.138 MB / 425.1 MB, free: 5.129 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003087/0.3864, allocations: 1.972 MB / 427 MB, free: 2.977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.3864, allocations: 4 kB / 427 MB, free: 2.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00478/0.3912, allocations: 2.526 MB / 429.6 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.3912, allocations: 15.94 kB / 429.6 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/0.3913, allocations: 12 kB / 429.6 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.3923, allocations: 422.9 kB / 430 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.3937, allocations: 351.4 kB / 430.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008222/0.4019, allocations: 7.124 MB / 437.5 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.4036, allocations: 111.9 kB / 437.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.4037, allocations: 64 kB / 437.6 MB, free: 7.902 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.001502/0.4052, allocations: 0.7261 MB / 438.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004601/0.4057, allocations: 173.8 kB / 438.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/0.41, allocations: 2.188 MB / 440.7 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.41, allocations: 12 kB / 440.7 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.41, allocations: 4 kB / 440.7 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.722e-05/0.41, allocations: 7.969 kB / 440.7 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008879/0.4189, allocations: 4.794 MB / 445.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.419, allocations: 4 kB / 445.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009746/0.4199, allocations: 220.1 kB / 445.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.4212, allocations: 470.9 kB / 446.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.129e-05/0.4213, allocations: 35.98 kB / 446.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009746/0.431, allocations: 8.681 MB / 454.9 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.4311, allocations: 4 kB / 454.9 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006012/0.4371, allocations: 3.222 MB / 458.2 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.4382, allocations: 398.8 kB / 458.5 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/0.4385, allocations: 31.98 kB / 458.6 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009542/0.4395, allocations: 87.91 kB / 458.7 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000268/0.4398, allocations: 104.7 kB / 458.8 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.903e-05/0.4399, allocations: 36 kB / 458.8 MB, free: 1.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001807/0.4417, allocations: 1.074 MB / 459.9 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4417, allocations: 4 kB / 459.9 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001828/0.4435, allocations: 484 kB / 460.3 MB, free: 360 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.0003984/0.4439, allocations: 203.1 kB / 460.5 MB, free: 148 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005272/0.4492, allocations: 2.79 MB / 463.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4492, allocations: 0 / 463.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002564/0.4518, allocations: 1.48 MB / 464.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.4542, allocations: 487.1 kB / 465.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008554/0.4628, allocations: 4.779 MB / 470.1 MB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001769/0.4646, allocations: 1.839 MB / 471.9 MB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005544/0.4652, allocations: 135.4 kB / 472 MB, free: 4.445 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4652, allocations: 0 / 472 MB, free: 4.445 MB / 382.1 MB Notification: Performance of Templates: time 0.243/0.7082, allocations: 73.74 MB / 0.533 GB, free: 147.8 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches