Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001519/0.001519, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001873/0.001874, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.00189, allocations: 60.03 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1286, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01281/0.1414, allocations: 10.34 MB / 369.2 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1678/0.3093, allocations: 3.483 MB / 372.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.3108, allocations: 59.22 kB / 372.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001758/0.3126, allocations: 0.769 MB / 373.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002058/0.3147, allocations: 0.835 MB / 374.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008109/0.3155, allocations: 419.2 kB / 374.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002986/0.3185, allocations: 2.761 MB / 377.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002482/0.321, allocations: 2.413 MB / 380 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002116/0.3231, allocations: 1.268 MB / 381.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002626/0.3258, allocations: 1.581 MB / 382.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006707/0.3264, allocations: 334.2 kB / 383.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.3277, allocations: 439 kB / 383.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000939/0.3286, allocations: 0.9393 MB / 384.5 MB, free: 8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001865/0.3305, allocations: 1.512 MB / 386 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003958/0.3345, allocations: 4.392 MB / 390.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3345, allocations: 0.75 kB / 390.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3345, allocations: 0 / 390.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.72e-05/0.3346, allocations: 0 / 390.4 MB, free: 4.934 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.005814/0.3404, allocations: 3.07 MB / 393.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.3404, allocations: 9.625 kB / 393.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008517/0.3413, allocations: 316.4 kB / 393.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002629/0.3439, allocations: 1.626 MB / 395.4 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.3441, allocations: 169.4 kB / 395.6 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/0.3444, allocations: 223.9 kB / 395.8 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004405/0.3488, allocations: 2.921 MB / 398.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/0.349, allocations: 10.97 kB / 398.8 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001982/0.3492, allocations: 88.09 kB / 398.8 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001044/0.3493, allocations: 118.7 kB / 399 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004189/0.3535, allocations: 2.429 MB / 401.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01408/0.3676, allocations: 9.012 MB / 410.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00248/0.3701, allocations: 1.704 MB / 412.1 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001692/0.3718, allocations: 1 MB / 413.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000351/0.3722, allocations: 198.2 kB / 413.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.3722, allocations: 51.5 kB / 413.3 MB, free: 1.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.615e-06/0.3722, allocations: 0 / 413.3 MB, free: 1.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01441/0.3866, allocations: 6.564 MB / 419.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.3867, allocations: 72.34 kB / 420 MB, free: 10.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002252/0.389, allocations: 1.562 MB / 421.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3891, allocations: 45.7 kB / 421.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007458/0.3899, allocations: 1.11 MB / 422.7 MB, free: 8.207 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003121/0.3902, allocations: 429.7 kB / 423.1 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004402/0.3906, allocations: 271.3 kB / 423.4 MB, free: 7.523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.198e-05/0.3907, allocations: 309.1 kB / 423.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.3919, allocations: 0.7144 MB / 424.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.3933, allocations: 1.131 MB / 425.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0027/0.3961, allocations: 1.97 MB / 427.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3961, allocations: 7.938 kB / 427.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004186/0.4003, allocations: 2.526 MB / 430 MB, free: 484 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.4003, allocations: 8 kB / 430 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.4003, allocations: 24.22 kB / 430.1 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009534/0.4013, allocations: 408.7 kB / 430.5 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.4026, allocations: 355.4 kB / 430.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006934/0.4096, allocations: 7.117 MB / 437.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.4112, allocations: 111.9 kB / 438 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.4113, allocations: 67.98 kB / 438.1 MB, free: 7.977 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.001254/0.4126, allocations: 0.7159 MB / 438.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/0.4129, allocations: 173.8 kB / 439 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003804/0.4167, allocations: 2.193 MB / 441.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.4168, allocations: 15.94 kB / 441.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.4168, allocations: 12 kB / 441.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.4168, allocations: 7.969 kB / 441.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007868/0.4247, allocations: 4.765 MB / 446 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.4247, allocations: 4 kB / 446 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009638/0.4257, allocations: 219.7 kB / 446.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.4268, allocations: 451.3 kB / 446.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.122e-05/0.4269, allocations: 43.97 kB / 446.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007833/0.4347, allocations: 8.679 MB / 455.4 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.4348, allocations: 8 kB / 455.4 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004997/0.4398, allocations: 3.22 MB / 458.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.4409, allocations: 398.8 kB / 459 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002619/0.4412, allocations: 31.98 kB / 459 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008932/0.4421, allocations: 87.91 kB / 459.1 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.4423, allocations: 100.7 kB / 459.2 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-05/0.4424, allocations: 36 kB / 459.2 MB, free: 2.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001523/0.4439, allocations: 1.078 MB / 460.3 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4439, allocations: 4 kB / 460.3 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001721/0.4457, allocations: 488 kB / 460.8 MB, free: 468 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.0004022/0.4461, allocations: 202.3 kB / 461 MB, free: 260 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00357/0.4497, allocations: 2.295 MB / 463.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4497, allocations: 0 / 463.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/0.4519, allocations: 1.477 MB / 464.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/0.4541, allocations: 487.2 kB / 465.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006855/0.461, allocations: 4.666 MB / 469.9 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001448/0.4625, allocations: 1.875 MB / 471.8 MB, free: 5.266 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00104/0.4635, allocations: 390.8 kB / 472.2 MB, free: 4.879 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.4639, allocations: 119.4 kB / 472.3 MB, free: 4.762 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4639, allocations: 0 / 472.3 MB, free: 4.762 MB / 382.1 MB Notification: Performance of Templates: time 0.04077/0.5046, allocations: 26.45 MB / 498.7 MB, free: 10.58 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches