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.001312/0.001312, allocations: 112.6 kB / 18.45 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 203.9 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 64.12 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.234, allocations: 50.54 MB / 409.9 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01202/0.2461, allocations: 10.34 MB / 420.3 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006618/0.2528, allocations: 3.483 MB / 423.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.2544, allocations: 59.75 kB / 423.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002349/0.2568, allocations: 0.78 MB / 424.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00292/0.2597, allocations: 0.8307 MB / 425.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.261, allocations: 431.3 kB / 425.9 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003627/0.2646, allocations: 2.761 MB / 428.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003196/0.2679, allocations: 2.41 MB / 431 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00213/0.27, allocations: 1.273 MB / 432.3 MB, free: 11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002632/0.2727, allocations: 1.584 MB / 433.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007254/0.2734, allocations: 336 kB / 434.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001174/0.2746, allocations: 439.8 kB / 434.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009319/0.2755, allocations: 0.935 MB / 435.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001969/0.2775, allocations: 1.509 MB / 437.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004697/0.2822, allocations: 4.396 MB / 441.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2823, allocations: 0 / 441.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2823, allocations: 0 / 441.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.884e-05/0.2824, allocations: 0 / 441.5 MB, free: 1.789 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.006406/0.2888, allocations: 3.061 MB / 444.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2888, allocations: 8.031 kB / 444.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000855/0.2897, allocations: 321.5 kB / 444.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00304/0.2928, allocations: 1.626 MB / 446.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.2929, allocations: 164.4 kB / 446.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003316/0.2932, allocations: 227.9 kB / 446.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004858/0.2981, allocations: 2.917 MB / 449.8 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.908e-05/0.2982, allocations: 11.84 kB / 449.8 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/0.2984, allocations: 91.98 kB / 449.9 MB, free: 9.164 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.2985, allocations: 112.3 kB / 450 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004135/0.3027, allocations: 2.437 MB / 452.4 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01409/0.3168, allocations: 8.996 MB / 461.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/0.3192, allocations: 1.724 MB / 463.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/0.321, allocations: 0.973 MB / 464.1 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002916/0.3213, allocations: 207.2 kB / 464.3 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.3213, allocations: 43.56 kB / 464.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.816e-06/0.3213, allocations: 4 kB / 464.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01469/0.336, allocations: 6.563 MB / 470.9 MB, free: 3.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.3361, allocations: 68.34 kB / 471 MB, free: 3.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002534/0.3387, allocations: 1.566 MB / 472.6 MB, free: 1.828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.3388, allocations: 49.64 kB / 472.6 MB, free: 1.773 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000798/0.3396, allocations: 1.112 MB / 473.7 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003929/0.34, allocations: 433.8 kB / 474.2 MB, free: 220 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004828/0.3405, allocations: 275.4 kB / 474.4 MB, free: 15.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3406, allocations: 301.1 kB / 474.7 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.3419, allocations: 0.7144 MB / 475.4 MB, free: 14.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001503/0.3434, allocations: 1.138 MB / 476.6 MB, free: 13.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002883/0.3463, allocations: 1.967 MB / 478.5 MB, free: 11.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/0.3463, allocations: 4 kB / 478.5 MB, free: 11.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004562/0.3509, allocations: 2.526 MB / 481.1 MB, free: 8.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.3509, allocations: 12 kB / 481.1 MB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/0.351, allocations: 12 kB / 481.1 MB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.352, allocations: 419.4 kB / 481.5 MB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.3534, allocations: 351.4 kB / 481.8 MB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007366/0.3607, allocations: 7.119 MB / 489 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.3623, allocations: 107.9 kB / 489.1 MB, free: 472 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/0.3625, allocations: 60 kB / 489.1 MB, free: 412 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.001331/0.3638, allocations: 0.7316 MB / 489.9 MB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004499/0.3643, allocations: 169.9 kB / 490 MB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004088/0.3684, allocations: 2.194 MB / 492.2 MB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.3684, allocations: 12 kB / 492.2 MB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/0.3684, allocations: 7.984 kB / 492.2 MB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.3685, allocations: 7.922 kB / 492.3 MB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009075/0.3775, allocations: 4.764 MB / 497 MB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.3776, allocations: 8.062 kB / 497 MB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009992/0.3786, allocations: 227.6 kB / 497.2 MB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.3798, allocations: 450.9 kB / 497.7 MB, free: 7.633 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.38, allocations: 35.98 kB / 497.7 MB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008121/0.3881, allocations: 8.694 MB / 0.4945 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.3881, allocations: 4 kB / 0.4945 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005209/0.3933, allocations: 3.222 MB / 0.4977 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.3944, allocations: 398.8 kB / 0.4981 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003432/0.3947, allocations: 32 kB / 0.4981 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.3957, allocations: 91.77 kB / 0.4982 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.396, allocations: 96.75 kB / 0.4983 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-05/0.3961, allocations: 43.98 kB / 0.4983 GB, free: 10.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001716/0.3978, allocations: 1.071 MB / 0.4994 GB, free: 9.277 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3978, allocations: 0 / 0.4994 GB, free: 9.277 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001746/0.3996, allocations: 488 kB / 0.4998 GB, free: 8.801 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.0004312/0.4, allocations: 195.1 kB / 0.5 GB, free: 8.598 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003818/0.4038, allocations: 2.301 MB / 0.5023 GB, free: 6.242 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.4039, allocations: 4 kB / 0.5023 GB, free: 6.238 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002441/0.4063, allocations: 1.47 MB / 0.5037 GB, free: 4.719 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/0.4088, allocations: 488.2 kB / 0.5042 GB, free: 4.254 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008044/0.4168, allocations: 4.726 MB / 0.5088 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001697/0.4185, allocations: 1.835 MB / 0.5106 GB, free: 13.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006206/0.4192, allocations: 135.4 kB / 0.5107 GB, free: 13.45 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4192, allocations: 0 / 0.5107 GB, free: 13.45 MB / 446.1 MB Notification: Performance of Templates: time 0.2632/0.6824, allocations: 74.29 MB / 0.5833 GB, free: 90.66 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