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.001148/0.001148, allocations: 113 kB / 18.45 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.001167/0.001167, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 59.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.34, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01204/0.3521, allocations: 10.35 MB / 420.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008194/0.3603, allocations: 3.474 MB / 423.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002053/0.3624, allocations: 59.75 kB / 423.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002305/0.3648, allocations: 0.7763 MB / 424.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003203/0.368, allocations: 0.8424 MB / 425.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.3691, allocations: 427.4 kB / 425.9 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003346/0.3725, allocations: 2.755 MB / 428.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002846/0.3754, allocations: 2.394 MB / 431 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002335/0.3777, allocations: 1.281 MB / 432.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002953/0.3807, allocations: 1.584 MB / 433.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008631/0.3815, allocations: 332 kB / 434.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.3828, allocations: 439.8 kB / 434.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.3839, allocations: 0.9388 MB / 435.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001801/0.3857, allocations: 1.509 MB / 437.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004807/0.3905, allocations: 4.394 MB / 441.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3905, allocations: 4 kB / 441.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3905, allocations: 0 / 441.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.988e-05/0.3906, allocations: 4 kB / 441.5 MB, free: 1.875 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.006862/0.3975, allocations: 3.061 MB / 444.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.3976, allocations: 8.031 kB / 444.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009238/0.3985, allocations: 313.5 kB / 444.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003044/0.4016, allocations: 1.633 MB / 446.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.4017, allocations: 172.3 kB / 446.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003772/0.4021, allocations: 223.9 kB / 446.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005383/0.4075, allocations: 2.925 MB / 449.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.187e-05/0.4076, allocations: 7.906 kB / 449.8 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002103/0.4078, allocations: 84 kB / 449.9 MB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/0.408, allocations: 116.3 kB / 450 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004517/0.4125, allocations: 2.441 MB / 452.4 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01471/0.4272, allocations: 8.996 MB / 461.4 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002417/0.4297, allocations: 1.712 MB / 463.2 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/0.4315, allocations: 0.9769 MB / 464.1 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003307/0.4319, allocations: 203.2 kB / 464.3 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.056e-05/0.4319, allocations: 44.03 kB / 464.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.146e-06/0.432, allocations: 4 kB / 464.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01465/0.4466, allocations: 6.573 MB / 470.9 MB, free: 3.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.4467, allocations: 64.41 kB / 471 MB, free: 3.488 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002465/0.4492, allocations: 1.566 MB / 472.6 MB, free: 1.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.098e-05/0.4493, allocations: 49.64 kB / 472.6 MB, free: 1.859 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009825/0.4503, allocations: 1.108 MB / 473.7 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004163/0.4507, allocations: 429.8 kB / 474.2 MB, free: 316 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004291/0.4511, allocations: 275.3 kB / 474.4 MB, free: 32 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.4513, allocations: 305.1 kB / 474.7 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.4524, allocations: 0.7144 MB / 475.4 MB, free: 15.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.454, allocations: 1.142 MB / 476.6 MB, free: 13.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003113/0.4571, allocations: 1.963 MB / 478.5 MB, free: 11.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.321e-05/0.4571, allocations: 4 kB / 478.5 MB, free: 11.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004641/0.4618, allocations: 2.526 MB / 481.1 MB, free: 8.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.715e-05/0.4618, allocations: 8 kB / 481.1 MB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.848e-05/0.4619, allocations: 20 kB / 481.1 MB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.4629, allocations: 423.2 kB / 481.5 MB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.4642, allocations: 355.4 kB / 481.9 MB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007307/0.4715, allocations: 7.119 MB / 489 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.4733, allocations: 107.8 kB / 489.1 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.4734, allocations: 60 kB / 489.1 MB, free: 492 kB / 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.001393/0.4748, allocations: 0.7238 MB / 489.9 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003755/0.4752, allocations: 169.9 kB / 490 MB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003891/0.4791, allocations: 2.202 MB / 492.2 MB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.4792, allocations: 12 kB / 492.2 MB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.4792, allocations: 8 kB / 492.2 MB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.4792, allocations: 11.91 kB / 492.3 MB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009145/0.4883, allocations: 4.759 MB / 497 MB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.4884, allocations: 4 kB / 497 MB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009618/0.4894, allocations: 220.1 kB / 497.2 MB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.4905, allocations: 470.8 kB / 497.7 MB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.815e-05/0.4906, allocations: 35.98 kB / 497.7 MB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008365/0.499, allocations: 8.686 MB / 0.4946 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.499, allocations: 11.94 kB / 0.4946 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00542/0.5045, allocations: 3.206 MB / 0.4977 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.5057, allocations: 398.8 kB / 0.4981 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002582/0.506, allocations: 28 kB / 0.4981 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009249/0.5069, allocations: 99.83 kB / 0.4982 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002482/0.5072, allocations: 92.75 kB / 0.4983 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.976e-05/0.5073, allocations: 43.98 kB / 0.4983 GB, free: 10.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001719/0.509, allocations: 1.071 MB / 0.4994 GB, free: 9.363 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.509, allocations: 0 / 0.4994 GB, free: 9.363 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001931/0.5109, allocations: 488 kB / 0.4998 GB, free: 8.887 MB / 430.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.0004391/0.5114, allocations: 199.1 kB / 0.5 GB, free: 8.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003955/0.5153, allocations: 2.297 MB / 0.5023 GB, free: 6.328 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.5154, allocations: 0 / 0.5023 GB, free: 6.328 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002517/0.5179, allocations: 1.469 MB / 0.5037 GB, free: 4.809 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002493/0.5204, allocations: 493.7 kB / 0.5042 GB, free: 4.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008224/0.5286, allocations: 4.719 MB / 0.5088 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/0.5303, allocations: 1.835 MB / 0.5106 GB, free: 13.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006445/0.531, allocations: 135.4 kB / 0.5107 GB, free: 13.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/0.531, allocations: 4 kB / 0.5107 GB, free: 13.53 MB / 446.1 MB Notification: Performance of Templates: time 0.3406/0.8717, allocations: 74 MB / 0.583 GB, free: 90.86 MB / 462.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 -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