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.001794/0.001794, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002235/0.002236, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 247.1 MB, free: 10.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 61.62 kB / 307.1 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09967, allocations: 50.54 MB / 357.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01279/0.1125, allocations: 10.28 MB / 368 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006426/0.119, allocations: 3.443 MB / 371.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00132/0.1203, allocations: 55.75 kB / 371.5 MB, free: 460 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1582/0.2786, allocations: 0.6808 MB / 372.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002828/0.2815, allocations: 0.748 MB / 372.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008826/0.2824, allocations: 374.1 kB / 373.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003346/0.2857, allocations: 2.75 MB / 376 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002487/0.2882, allocations: 2.4 MB / 378.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002043/0.2903, allocations: 1.273 MB / 379.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.2924, allocations: 1.609 MB / 381.3 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005476/0.293, allocations: 334.3 kB / 381.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009355/0.2939, allocations: 446.8 kB / 382 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000779/0.2947, allocations: 0.9451 MB / 383 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.2962, allocations: 1.507 MB / 384.5 MB, free: 7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003243/0.2994, allocations: 3.648 MB / 388.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2994, allocations: 0 / 388.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2995, allocations: 0 / 388.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.974e-05/0.2996, allocations: 0 / 388.1 MB, free: 5.867 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.00591/0.3055, allocations: 3.07 MB / 391.2 MB, free: 3.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.3055, allocations: 9.562 kB / 391.2 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000846/0.3064, allocations: 310.7 kB / 391.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/0.3085, allocations: 1.579 MB / 393.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3087, allocations: 177.8 kB / 393.3 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002877/0.309, allocations: 224.2 kB / 393.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004402/0.3134, allocations: 2.914 MB / 396.4 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.99e-05/0.3135, allocations: 14.45 kB / 396.4 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.3137, allocations: 88.22 kB / 396.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-05/0.3138, allocations: 115.6 kB / 396.6 MB, free: 488 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003832/0.3176, allocations: 2.439 MB / 399.1 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01566/0.3333, allocations: 9.113 MB / 408.2 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002582/0.3359, allocations: 1.698 MB / 409.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001865/0.3378, allocations: 0.992 MB / 410.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003227/0.3381, allocations: 217.9 kB / 411.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.3382, allocations: 51.5 kB / 411.1 MB, free: 3.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.755e-06/0.3382, allocations: 0 / 411.1 MB, free: 3.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01492/0.3531, allocations: 6.567 MB / 417.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/0.3532, allocations: 64.41 kB / 417.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002437/0.3556, allocations: 1.569 MB / 419.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.3558, allocations: 45.7 kB / 419.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009186/0.3567, allocations: 1.102 MB / 420.5 MB, free: 9.715 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003922/0.3571, allocations: 430.4 kB / 420.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004639/0.3576, allocations: 275.3 kB / 421.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.3577, allocations: 307 kB / 421.5 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.359, allocations: 0.7105 MB / 422.2 MB, free: 8.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.3606, allocations: 1.138 MB / 423.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0029/0.3635, allocations: 1.968 MB / 425.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.3635, allocations: 4 kB / 425.3 MB, free: 4.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004407/0.3679, allocations: 2.522 MB / 427.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.368, allocations: 11.94 kB / 427.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.368, allocations: 16 kB / 427.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.369, allocations: 430.1 kB / 428.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.3703, allocations: 351.4 kB / 428.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007725/0.3781, allocations: 7.122 MB / 435.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.3795, allocations: 107.8 kB / 435.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.3797, allocations: 64 kB / 435.9 MB, free: 9.473 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.001323/0.381, allocations: 0.7167 MB / 436.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003333/0.3813, allocations: 169.8 kB / 436.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004051/0.3854, allocations: 2.197 MB / 439 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.3854, allocations: 15.94 kB / 439 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.3854, allocations: 8 kB / 439 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.3855, allocations: 11.91 kB / 439 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008317/0.3938, allocations: 4.791 MB / 443.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.3938, allocations: 8.062 kB / 443.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009724/0.3948, allocations: 215.7 kB / 444 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.396, allocations: 462.8 kB / 444.5 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.3962, allocations: 39.98 kB / 444.5 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009085/0.4052, allocations: 8.688 MB / 453.2 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.4053, allocations: 7.984 kB / 453.2 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005537/0.4108, allocations: 3.215 MB / 456.4 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009014/0.4118, allocations: 402.8 kB / 456.8 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002737/0.412, allocations: 32 kB / 456.8 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009628/0.413, allocations: 79.91 kB / 456.9 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002413/0.4133, allocations: 100.7 kB / 457 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.466e-05/0.4134, allocations: 43.98 kB / 457.1 MB, free: 3.465 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001769/0.4151, allocations: 1.067 MB / 458.1 MB, free: 2.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4151, allocations: 0 / 458.1 MB, free: 2.402 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002055/0.4172, allocations: 488 kB / 458.6 MB, free: 1.926 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.0004776/0.4177, allocations: 198.9 kB / 458.8 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005368/0.4231, allocations: 2.794 MB / 461.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.4231, allocations: 8.125 kB / 461.6 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002587/0.4257, allocations: 1.469 MB / 463.1 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.4282, allocations: 486.3 kB / 463.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00907/0.4373, allocations: 5.767 MB / 469.3 MB, free: 7.035 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/0.439, allocations: 1.839 MB / 471.2 MB, free: 5.168 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000566/0.4396, allocations: 135.4 kB / 471.3 MB, free: 5.035 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4396, allocations: 0 / 471.3 MB, free: 5.035 MB / 382.1 MB Notification: Performance of Templates: time 0.2372/0.6768, allocations: 73.74 MB / 0.5322 GB, free: 147.6 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.1.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