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.001025/0.001025, allocations: 112 kB / 17.68 MB, free: 5.332 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.00106/0.00106, allocations: 190.9 kB / 18.62 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.395/1.395, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009701/0.0009706, allocations: 47.06 kB / 302.1 MB, free: 5.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1107, allocations: 49.43 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01183/0.1226, allocations: 10.3 MB / 361.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007139/0.1298, allocations: 3.438 MB / 365.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001986/0.1318, allocations: 63.75 kB / 365.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002244/0.1341, allocations: 0.7607 MB / 366.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003707/0.1378, allocations: 0.8385 MB / 366.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.1391, allocations: 415.4 kB / 367.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003707/0.1429, allocations: 2.751 MB / 370.1 MB, free: 1.035 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.214/0.3569, allocations: 2.397 MB / 372.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002527/0.3594, allocations: 1.25 MB / 373.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002483/0.3619, allocations: 1.583 MB / 375.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000587/0.3625, allocations: 333.9 kB / 375.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.3636, allocations: 436.8 kB / 376 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009553/0.3646, allocations: 0.9348 MB / 377 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001674/0.3662, allocations: 1.507 MB / 378.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005169/0.3714, allocations: 4.38 MB / 382.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3715, allocations: 0 / 382.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.3715, allocations: 0 / 382.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001251/0.3716, allocations: 0 / 382.9 MB, free: 9.957 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.007487/0.3791, allocations: 3.065 MB / 385.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.3791, allocations: 8.656 kB / 385.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008411/0.38, allocations: 309.4 kB / 386.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00287/0.3829, allocations: 1.623 MB / 387.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.383, allocations: 171.6 kB / 388 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003388/0.3834, allocations: 227.7 kB / 388.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004631/0.388, allocations: 2.912 MB / 391.2 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.588e-05/0.3881, allocations: 6.344 kB / 391.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/0.3883, allocations: 94.61 kB / 391.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/0.3884, allocations: 120.2 kB / 391.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003832/0.3922, allocations: 2.43 MB / 393.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01317/0.4054, allocations: 9.005 MB / 402.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002311/0.4078, allocations: 1.703 MB / 404.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/0.4096, allocations: 0.9886 MB / 405.5 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00035/0.4099, allocations: 210.7 kB / 405.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.41, allocations: 50.12 kB / 405.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.845e-06/0.41, allocations: 0 / 405.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01437/0.4244, allocations: 6.554 MB / 412.3 MB, free: 3.789 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.4245, allocations: 68.39 kB / 412.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002327/0.4268, allocations: 1.565 MB / 413.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.348e-05/0.4269, allocations: 45.7 kB / 414 MB, free: 2.086 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007924/0.4277, allocations: 1.114 MB / 415.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003316/0.428, allocations: 427.2 kB / 415.5 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004309/0.4285, allocations: 275.3 kB / 415.8 MB, free: 280 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4286, allocations: 301.1 kB / 416.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/0.4298, allocations: 0.7105 MB / 416.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.4313, allocations: 1.135 MB / 417.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/0.4339, allocations: 1.969 MB / 419.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.4339, allocations: 4 kB / 419.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004216/0.4382, allocations: 2.522 MB / 422.4 MB, free: 9.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.4382, allocations: 12 kB / 422.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.4382, allocations: 15.94 kB / 422.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009856/0.4392, allocations: 424.2 kB / 422.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.4406, allocations: 348.9 kB / 423.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006903/0.4475, allocations: 7.141 MB / 430.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/0.4491, allocations: 103.8 kB / 430.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.4492, allocations: 64.64 kB / 430.5 MB, free: 0.9297 MB / 334.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.001322/0.4506, allocations: 0.7172 MB / 431.2 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003232/0.4509, allocations: 169.9 kB / 431.4 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/0.4546, allocations: 2.198 MB / 433.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.4546, allocations: 12 kB / 433.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.4546, allocations: 4 kB / 433.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.4546, allocations: 3.984 kB / 433.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008025/0.4627, allocations: 4.772 MB / 438.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.4627, allocations: 8.031 kB / 438.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009999/0.4637, allocations: 222.3 kB / 438.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.4648, allocations: 453.6 kB / 439.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-05/0.4649, allocations: 35.98 kB / 439.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008103/0.4731, allocations: 8.688 MB / 447.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.4731, allocations: 4 kB / 447.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005225/0.4783, allocations: 3.227 MB / 451 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.4795, allocations: 398.8 kB / 451.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002452/0.4797, allocations: 28 kB / 451.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009231/0.4807, allocations: 87.89 kB / 451.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002433/0.4809, allocations: 99.44 kB / 451.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-05/0.481, allocations: 42.61 kB / 451.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001598/0.4826, allocations: 1.066 MB / 452.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4826, allocations: 0 / 452.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001777/0.4844, allocations: 492 kB / 453.2 MB, free: 9.547 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.0003841/0.4848, allocations: 193.8 kB / 453.4 MB, free: 9.359 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003649/0.4885, allocations: 2.297 MB / 455.7 MB, free: 7.059 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.4885, allocations: 3.938 kB / 455.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002398/0.4909, allocations: 1.473 MB / 457.2 MB, free: 5.559 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/0.4933, allocations: 479.6 kB / 457.6 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00732/0.5006, allocations: 4.669 MB / 462.3 MB, free: 392 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001645/0.5023, allocations: 1.867 MB / 464.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001294/0.5036, allocations: 394.8 kB / 464.6 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003764/0.504, allocations: 123.4 kB / 464.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.504, allocations: 0 / 464.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of Templates: time 0.04566/0.5496, allocations: 26.36 MB / 491 MB, free: 3.945 MB / 398.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 -s cvode -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