Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 117.8 kB / 17.07 MB, free: 5.996 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.001749/0.00175, allocations: 194.9 kB / 18 MB, free: 5.086 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.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2884, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01212/0.3005, allocations: 10.31 MB / 411 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007223/0.3078, allocations: 3.424 MB / 414.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.3098, allocations: 59.75 kB / 414.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002416/0.3123, allocations: 0.8191 MB / 415.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003689/0.316, allocations: 0.8776 MB / 416.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.3174, allocations: 423.4 kB / 416.6 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003597/0.321, allocations: 2.753 MB / 419.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003168/0.3242, allocations: 2.398 MB / 421.8 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.3261, allocations: 1.265 MB / 423.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002573/0.3287, allocations: 1.576 MB / 424.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000767/0.3294, allocations: 332 kB / 425 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009685/0.3304, allocations: 443.8 kB / 425.4 MB, free: 64 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008853/0.3313, allocations: 0.939 MB / 426.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001564/0.3329, allocations: 1.501 MB / 427.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003903/0.3368, allocations: 4.377 MB / 432.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3368, allocations: 0 / 432.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3368, allocations: 4 kB / 432.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.4e-05/0.3369, allocations: 7.938 kB / 432.2 MB, free: 9.211 MB / 350.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.005882/0.3428, allocations: 3.049 MB / 435.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3429, allocations: 12.03 kB / 435.3 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007571/0.3436, allocations: 309.4 kB / 435.6 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/0.3461, allocations: 1.629 MB / 437.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.3463, allocations: 172.3 kB / 437.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003132/0.3466, allocations: 220 kB / 437.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004715/0.3513, allocations: 2.917 MB / 440.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.477e-05/0.3514, allocations: 11.91 kB / 440.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.3516, allocations: 88 kB / 440.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001243/0.3518, allocations: 108.3 kB / 440.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004412/0.3562, allocations: 2.441 MB / 443.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01471/0.3709, allocations: 9.012 MB / 452.2 MB, free: 4.746 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.3734, allocations: 1.7 MB / 453.9 MB, free: 2.922 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.3751, allocations: 0.9852 MB / 454.9 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003122/0.3755, allocations: 207.2 kB / 455.1 MB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/0.3755, allocations: 47.5 kB / 455.1 MB, free: 1.645 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 2.865e-06/0.3755, allocations: 4 kB / 455.1 MB, free: 1.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01417/0.3897, allocations: 6.562 MB / 461.7 MB, free: 10.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.3898, allocations: 64.41 kB / 461.7 MB, free: 10.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002438/0.3923, allocations: 1.565 MB / 463.3 MB, free: 9.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.3924, allocations: 49.64 kB / 463.3 MB, free: 9.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008373/0.3932, allocations: 1.1 MB / 464.4 MB, free: 8.098 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003799/0.3936, allocations: 429.8 kB / 464.9 MB, free: 7.672 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004476/0.3941, allocations: 271.3 kB / 465.1 MB, free: 7.398 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3942, allocations: 305.1 kB / 465.4 MB, free: 7.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.3955, allocations: 0.7144 MB / 466.1 MB, free: 6.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.397, allocations: 1.142 MB / 467.3 MB, free: 5.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002747/0.3997, allocations: 1.967 MB / 469.3 MB, free: 2.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.3997, allocations: 4 kB / 469.3 MB, free: 2.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004382/0.4041, allocations: 2.534 MB / 471.8 MB, free: 344 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.4042, allocations: 12 kB / 471.8 MB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.835e-05/0.4042, allocations: 15.94 kB / 471.8 MB, free: 316 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.4052, allocations: 423.2 kB / 472.2 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.4064, allocations: 351.4 kB / 472.6 MB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006794/0.4133, allocations: 7.118 MB / 479.7 MB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.4147, allocations: 107.8 kB / 479.8 MB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.4149, allocations: 60 kB / 479.9 MB, free: 7.844 MB / 398.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.001324/0.4162, allocations: 0.72 MB / 480.6 MB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002993/0.4165, allocations: 169.9 kB / 480.7 MB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.4202, allocations: 2.206 MB / 482.9 MB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.4202, allocations: 12 kB / 483 MB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.4202, allocations: 4 kB / 483 MB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.4203, allocations: 11.91 kB / 483 MB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007998/0.4283, allocations: 4.771 MB / 487.7 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.4283, allocations: 4.094 kB / 487.7 MB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009028/0.4292, allocations: 216.2 kB / 488 MB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.4303, allocations: 458.9 kB / 488.4 MB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.998e-05/0.4304, allocations: 39.97 kB / 488.4 MB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008468/0.4389, allocations: 8.678 MB / 497.1 MB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.4389, allocations: 7.938 kB / 497.1 MB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004907/0.4439, allocations: 3.206 MB / 0.4886 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007788/0.4447, allocations: 394.9 kB / 0.489 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000193/0.4449, allocations: 35.98 kB / 0.489 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008411/0.4457, allocations: 83.91 kB / 0.4891 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.4459, allocations: 100.7 kB / 0.4892 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.128e-05/0.446, allocations: 40 kB / 0.4892 GB, free: 1.816 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001456/0.4475, allocations: 1.066 MB / 0.4903 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4475, allocations: 0 / 0.4903 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001522/0.449, allocations: 488.1 kB / 0.4907 GB, free: 284 kB / 414.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.0003621/0.4494, allocations: 207 kB / 0.4909 GB, free: 64 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.4529, allocations: 2.305 MB / 0.4932 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4529, allocations: 4 kB / 0.4932 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00219/0.4551, allocations: 1.477 MB / 0.4946 GB, free: 12.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.4571, allocations: 482.3 kB / 0.4951 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006985/0.4641, allocations: 4.67 MB / 0.4997 GB, free: 6.957 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001435/0.4655, allocations: 1.864 MB / 0.5015 GB, free: 5.059 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001068/0.4666, allocations: 386.9 kB / 0.5018 GB, free: 4.676 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003259/0.4669, allocations: 119.4 kB / 0.502 GB, free: 4.559 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4669, allocations: 0 / 0.502 GB, free: 4.559 MB / 430.1 MB Notification: Performance of Templates: time 0.04343/0.5104, allocations: 26.83 MB / 0.5282 GB, free: 9.977 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches