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.001567/0.001567, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00198/0.00198, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.001131, allocations: 63.98 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09495/0.09609, allocations: 50.54 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01183/0.108, allocations: 10.35 MB / 369.3 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1741/0.2821, allocations: 3.48 MB / 372.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.2837, allocations: 55.53 kB / 372.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001949/0.2857, allocations: 0.7674 MB / 373.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002754/0.2885, allocations: 0.8358 MB / 374.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.2896, allocations: 422.1 kB / 374.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003739/0.2933, allocations: 2.767 MB / 377.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002797/0.2961, allocations: 2.403 MB / 380 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002537/0.2987, allocations: 1.27 MB / 381.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002361/0.301, allocations: 1.581 MB / 382.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006264/0.3017, allocations: 337.3 kB / 383.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001116/0.3028, allocations: 439.7 kB / 383.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008968/0.3037, allocations: 0.9326 MB / 384.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.3052, allocations: 1.509 MB / 386 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0039/0.3091, allocations: 4.391 MB / 390.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3092, allocations: 4.844 kB / 390.4 MB, free: 4.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.3092, allocations: 0 / 390.4 MB, free: 4.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.171e-05/0.3092, allocations: 3.938 kB / 390.4 MB, free: 4.926 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.00614/0.3154, allocations: 3.066 MB / 393.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3155, allocations: 10.69 kB / 393.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009636/0.3164, allocations: 318.1 kB / 393.8 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002794/0.3192, allocations: 1.624 MB / 395.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.3193, allocations: 166.5 kB / 395.6 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003217/0.3197, allocations: 234.4 kB / 395.8 MB, free: 1.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004821/0.3245, allocations: 2.917 MB / 398.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.656e-05/0.3246, allocations: 6.875 kB / 398.8 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002071/0.3248, allocations: 92.3 kB / 398.8 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001167/0.3249, allocations: 112.3 kB / 399 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004244/0.3292, allocations: 2.439 MB / 401.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01342/0.3426, allocations: 9.006 MB / 410.4 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002248/0.3449, allocations: 1.698 MB / 412.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.3466, allocations: 0.9938 MB / 413.1 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002909/0.3469, allocations: 212.1 kB / 413.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.3469, allocations: 55.44 kB / 413.4 MB, free: 1.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.927e-06/0.3469, allocations: 7.984 kB / 413.4 MB, free: 1.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01382/0.3607, allocations: 6.552 MB / 419.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.3608, allocations: 68.39 kB / 420 MB, free: 10.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002473/0.3633, allocations: 1.565 MB / 421.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.917e-05/0.3634, allocations: 45.7 kB / 421.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000808/0.3642, allocations: 1.109 MB / 422.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003513/0.3646, allocations: 426.7 kB / 423.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004183/0.365, allocations: 275.3 kB / 423.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.819e-05/0.3651, allocations: 305.1 kB / 423.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/0.3662, allocations: 0.7066 MB / 424.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.3677, allocations: 1.143 MB / 425.5 MB, free: 5.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002575/0.3703, allocations: 1.97 MB / 427.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.3703, allocations: 4 kB / 427.5 MB, free: 3.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004198/0.3745, allocations: 2.525 MB / 430 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.3745, allocations: 12 kB / 430 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/0.3746, allocations: 15.94 kB / 430.1 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.3756, allocations: 431 kB / 430.5 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.3768, allocations: 351.4 kB / 430.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006992/0.3839, allocations: 7.121 MB / 437.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.3855, allocations: 111.9 kB / 438.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.3856, allocations: 63.98 kB / 438.1 MB, free: 7.984 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.001398/0.387, allocations: 0.7208 MB / 438.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003371/0.3874, allocations: 169.8 kB / 439 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003701/0.3911, allocations: 2.193 MB / 441.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.3911, allocations: 12 kB / 441.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.3911, allocations: 4 kB / 441.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.3911, allocations: 7.969 kB / 441.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007994/0.3991, allocations: 4.768 MB / 446 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.3992, allocations: 4 kB / 446 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008754/0.4, allocations: 216.2 kB / 446.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.4011, allocations: 462.8 kB / 446.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.29e-05/0.4012, allocations: 39.97 kB / 446.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007517/0.4087, allocations: 8.68 MB / 455.4 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.4088, allocations: 8.172 kB / 455.4 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004804/0.4136, allocations: 3.218 MB / 458.6 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009663/0.4146, allocations: 394.8 kB / 459 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002274/0.4148, allocations: 39.98 kB / 459 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008893/0.4157, allocations: 79.91 kB / 459.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/0.4159, allocations: 100.8 kB / 459.2 MB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.202e-05/0.416, allocations: 39.98 kB / 459.2 MB, free: 2.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001544/0.4176, allocations: 1.067 MB / 460.3 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4176, allocations: 0 / 460.3 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001652/0.4192, allocations: 496 kB / 460.8 MB, free: 488 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.0003594/0.4196, allocations: 201.7 kB / 461 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003362/0.423, allocations: 2.293 MB / 463.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.423, allocations: 320 / 463.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002166/0.4252, allocations: 1.481 MB / 464.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/0.427, allocations: 483.7 kB / 465.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006962/0.434, allocations: 4.675 MB / 469.9 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0016/0.4356, allocations: 1.867 MB / 471.8 MB, free: 5.281 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001043/0.4367, allocations: 398.8 kB / 472.2 MB, free: 4.887 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003365/0.437, allocations: 123.4 kB / 472.3 MB, free: 4.766 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.437, allocations: 0 / 472.3 MB, free: 4.766 MB / 382.1 MB Notification: Performance of Templates: time 0.04516/0.4822, 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 cvode -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