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.00066/0.0006601, allocations: 97.73 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008635/0.0008636, allocations: 204.8 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.7 MB / 247.5 MB, free: 9.305 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002506, allocations: 8 kB / 308.4 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09435, allocations: 51.52 MB / 359.9 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01016/0.1046, allocations: 9.741 MB / 369.7 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1708/0.2754, allocations: 3.41 MB / 373.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001625/0.2771, allocations: 53.38 kB / 373.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0021/0.2792, allocations: 0.675 MB / 373.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00258/0.2818, allocations: 0.7529 MB / 374.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009292/0.2827, allocations: 375 kB / 374.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003995/0.2867, allocations: 3.088 MB / 378 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002346/0.2891, allocations: 2.015 MB / 380 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0017/0.2908, allocations: 0.9679 MB / 381 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001689/0.2925, allocations: 1.333 MB / 382.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002749/0.2928, allocations: 140.5 kB / 382.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006986/0.2935, allocations: 253.9 kB / 382.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007192/0.2942, allocations: 0.7091 MB / 383.4 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.2956, allocations: 1.272 MB / 384.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003182/0.2987, allocations: 3.525 MB / 388.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2988, allocations: 0.9375 kB / 388.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.2988, allocations: 0 / 388.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.768e-05/0.2989, allocations: 0 / 388.2 MB, free: 6.031 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.005199/0.3041, allocations: 2.617 MB / 390.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3041, allocations: 9.531 kB / 390.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009699/0.3051, allocations: 318.7 kB / 391.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002341/0.3074, allocations: 1.577 MB / 392.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.3076, allocations: 169.7 kB / 392.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003284/0.3079, allocations: 235.4 kB / 393.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004496/0.3124, allocations: 2.926 MB / 396 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.702e-05/0.3125, allocations: 2.844 kB / 396 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002004/0.3127, allocations: 91.86 kB / 396.1 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001062/0.3128, allocations: 114.3 kB / 396.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003826/0.3167, allocations: 2.464 MB / 398.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01347/0.3301, allocations: 9.152 MB / 407.9 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002253/0.3324, allocations: 1.721 MB / 409.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.3342, allocations: 1.007 MB / 410.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002665/0.3345, allocations: 206.4 kB / 410.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.3345, allocations: 51.48 kB / 410.8 MB, free: 4.156 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.976e-06/0.3345, allocations: 0 / 410.8 MB, free: 4.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01404/0.3486, allocations: 6.713 MB / 417.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.3486, allocations: 64.41 kB / 417.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002137/0.3508, allocations: 1.562 MB / 419.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.946e-05/0.3509, allocations: 45.7 kB / 419.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007211/0.3516, allocations: 1.121 MB / 420.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.3519, allocations: 427.7 kB / 420.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.3521, allocations: 125.6 kB / 420.9 MB, free: 9.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.259e-05/0.3522, allocations: 301.1 kB / 421.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.3534, allocations: 0.7183 MB / 421.9 MB, free: 8.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.3548, allocations: 1.154 MB / 423.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002675/0.3575, allocations: 1.987 MB / 425 MB, free: 5.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.3575, allocations: 4 kB / 425 MB, free: 5.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004033/0.3615, allocations: 2.545 MB / 427.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.3616, allocations: 18.91 kB / 427.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/0.3616, allocations: 12 kB / 427.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009306/0.3625, allocations: 426.1 kB / 428 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.3638, allocations: 351.5 kB / 428.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006255/0.3701, allocations: 6.552 MB / 434.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.3714, allocations: 115.8 kB / 435 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.3715, allocations: 67.92 kB / 435.1 MB, free: 10.89 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.001209/0.3727, allocations: 0.716 MB / 435.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.373, allocations: 177.8 kB / 436 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003806/0.3768, allocations: 2.214 MB / 438.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.3768, allocations: 15.94 kB / 438.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3768, allocations: 8 kB / 438.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.3768, allocations: 7.969 kB / 438.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007686/0.3845, allocations: 4.809 MB / 443.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.3845, allocations: 4 kB / 443.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009652/0.3855, allocations: 232.1 kB / 443.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.3867, allocations: 457.5 kB / 443.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-05/0.3868, allocations: 39.98 kB / 443.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007365/0.3941, allocations: 7.993 MB / 451.8 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3942, allocations: 4 kB / 451.8 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004895/0.3991, allocations: 3.251 MB / 455 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007817/0.3998, allocations: 398.8 kB / 455.4 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003286/0.4002, allocations: 35.98 kB / 455.4 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.4012, allocations: 91.91 kB / 455.5 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.4015, allocations: 100.7 kB / 455.6 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/0.4016, allocations: 36 kB / 455.7 MB, free: 5.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001718/0.4033, allocations: 1.078 MB / 456.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4033, allocations: 0 / 456.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001788/0.4051, allocations: 488 kB / 457.2 MB, free: 3.961 MB / 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.0004015/0.4055, allocations: 202.4 kB / 457.4 MB, free: 3.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003695/0.4092, allocations: 2.301 MB / 459.7 MB, free: 1.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.4092, allocations: 0 / 459.7 MB, free: 1.395 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002328/0.4116, allocations: 1.49 MB / 461.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002967/0.4146, allocations: 452.5 kB / 461.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008222/0.4228, allocations: 5.91 MB / 467.6 MB, free: 9.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001626/0.4244, allocations: 1.839 MB / 469.4 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004973/0.4249, allocations: 131.4 kB / 469.5 MB, free: 7.418 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.425, allocations: 0 / 469.5 MB, free: 7.418 MB / 382.1 MB Notification: Performance of Templates: time 0.2396/0.6645, allocations: 73.38 MB / 0.5302 GB, free: 147.2 MB / 446.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