Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 114.9 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 188.4 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009232/0.0009233, allocations: 51.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2619, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01152/0.2735, allocations: 10.3 MB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006064/0.2796, allocations: 3.434 MB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.2806, allocations: 55.75 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.2822, allocations: 0.7646 MB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001847/0.2841, allocations: 0.8307 MB / 416.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007711/0.2849, allocations: 419.4 kB / 417.2 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00279/0.2877, allocations: 2.747 MB / 420 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002372/0.29, allocations: 2.406 MB / 422.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.2914, allocations: 1.261 MB / 423.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001733/0.2932, allocations: 1.576 MB / 425.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003905/0.2936, allocations: 336 kB / 425.5 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006964/0.2943, allocations: 443.8 kB / 426 MB, free: 160 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000777/0.2951, allocations: 0.9388 MB / 426.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.2963, allocations: 1.497 MB / 428.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003531/0.2999, allocations: 4.382 MB / 432.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2999, allocations: 4 kB / 432.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2999, allocations: 3.938 kB / 432.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.94e-05/0.3, allocations: 0 / 432.8 MB, free: 9.309 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.005256/0.3052, allocations: 3.049 MB / 435.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.3053, allocations: 12.03 kB / 435.9 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000702/0.306, allocations: 313.4 kB / 436.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/0.3083, allocations: 1.625 MB / 437.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.3084, allocations: 176.3 kB / 438 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002938/0.3087, allocations: 216 kB / 438.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004317/0.313, allocations: 2.909 MB / 441.1 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.372e-05/0.3131, allocations: 19.88 kB / 441.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001937/0.3133, allocations: 91.98 kB / 441.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.3134, allocations: 112.3 kB / 441.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003796/0.3172, allocations: 2.434 MB / 443.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01236/0.3296, allocations: 9.008 MB / 452.7 MB, free: 4.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002233/0.3318, allocations: 1.705 MB / 454.4 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/0.3336, allocations: 0.9845 MB / 455.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002758/0.3339, allocations: 207.1 kB / 455.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.3339, allocations: 51.56 kB / 455.7 MB, free: 1.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.347e-06/0.3339, allocations: 0 / 455.7 MB, free: 1.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01348/0.3474, allocations: 6.559 MB / 462.2 MB, free: 11.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.3475, allocations: 64.41 kB / 462.3 MB, free: 10.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/0.3495, allocations: 1.569 MB / 463.9 MB, free: 9.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-05/0.3496, allocations: 45.7 kB / 463.9 MB, free: 9.312 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007539/0.3503, allocations: 1.104 MB / 465 MB, free: 8.191 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.3506, allocations: 429.8 kB / 465.4 MB, free: 7.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004011/0.3511, allocations: 271.4 kB / 465.7 MB, free: 7.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3512, allocations: 309.1 kB / 466 MB, free: 7.188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.3523, allocations: 0.7105 MB / 466.7 MB, free: 6.477 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.3537, allocations: 1.142 MB / 467.9 MB, free: 5.156 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002637/0.3564, allocations: 1.967 MB / 469.8 MB, free: 3.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.3564, allocations: 4 kB / 469.8 MB, free: 3.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003889/0.3603, allocations: 2.522 MB / 472.4 MB, free: 452 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3603, allocations: 15.94 kB / 472.4 MB, free: 436 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.3603, allocations: 12 kB / 472.4 MB, free: 424 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009141/0.3613, allocations: 435.3 kB / 472.8 MB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.3625, allocations: 347.4 kB / 473.1 MB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006857/0.3694, allocations: 7.134 MB / 480.3 MB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.3705, allocations: 103.8 kB / 480.4 MB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3706, allocations: 60 kB / 480.4 MB, free: 7.93 MB / 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.00108/0.3717, allocations: 0.7237 MB / 481.2 MB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002569/0.3719, allocations: 165.9 kB / 481.3 MB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003721/0.3757, allocations: 2.202 MB / 483.5 MB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3757, allocations: 12 kB / 483.5 MB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3757, allocations: 4 kB / 483.5 MB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.3757, allocations: 7.922 kB / 483.6 MB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007238/0.3829, allocations: 4.771 MB / 488.3 MB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.383, allocations: 4.469 kB / 488.3 MB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009492/0.3839, allocations: 231.6 kB / 488.6 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001078/0.385, allocations: 450.9 kB / 489 MB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-05/0.3851, allocations: 31.98 kB / 489 MB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008046/0.3932, allocations: 8.685 MB / 497.7 MB, free: 5.871 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.3932, allocations: 8.172 kB / 497.7 MB, free: 5.863 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004694/0.3979, allocations: 3.21 MB / 0.4892 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006327/0.3985, allocations: 394.9 kB / 0.4896 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.3988, allocations: 28 kB / 0.4896 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009062/0.3997, allocations: 87.89 kB / 0.4897 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.3999, allocations: 100.8 kB / 0.4898 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.523e-05/0.4, allocations: 39.98 kB / 0.4898 GB, free: 1.902 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001475/0.4014, allocations: 1.066 MB / 0.4909 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.535e-06/0.4014, allocations: 0 / 0.4909 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001543/0.403, allocations: 496 kB / 0.4913 GB, free: 364 kB / 414.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.0003768/0.4034, allocations: 196.9 kB / 0.4915 GB, free: 156 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003456/0.4068, allocations: 2.313 MB / 0.4938 GB, free: 13.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4069, allocations: 0 / 0.4938 GB, free: 13.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.4091, allocations: 1.469 MB / 0.4952 GB, free: 12.26 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001916/0.411, allocations: 483.2 kB / 0.4957 GB, free: 11.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006774/0.4178, allocations: 4.732 MB / 0.5003 GB, free: 6.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/0.4193, allocations: 1.835 MB / 0.5021 GB, free: 5.113 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004337/0.4197, allocations: 131.4 kB / 0.5022 GB, free: 4.984 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4197, allocations: 0 / 0.5022 GB, free: 4.984 MB / 430.1 MB Notification: Performance of Templates: time 0.285/0.7047, allocations: 73.85 MB / 0.5743 GB, free: 105.1 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches