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.001181/0.001181, allocations: 110.6 kB / 17.06 MB, free: 6.023 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.001241/0.001241, allocations: 191 kB / 17.99 MB, free: 5.109 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.355/1.355, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009748/0.0009748, allocations: 39.94 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2906, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01068/0.3013, allocations: 10.31 MB / 411 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00691/0.3082, allocations: 3.42 MB / 414.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001153/0.3094, allocations: 59.75 kB / 414.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.3114, allocations: 0.8074 MB / 415.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002401/0.3138, allocations: 0.8854 MB / 416.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009416/0.3147, allocations: 427.3 kB / 416.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002983/0.3177, allocations: 2.758 MB / 419.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002728/0.3205, allocations: 2.398 MB / 421.8 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001577/0.3221, allocations: 1.273 MB / 423.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.324, allocations: 1.572 MB / 424.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003919/0.3244, allocations: 332 kB / 425 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00075/0.3252, allocations: 443.8 kB / 425.4 MB, free: 60 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009001/0.3261, allocations: 0.9388 MB / 426.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001378/0.3275, allocations: 1.505 MB / 427.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003823/0.3313, allocations: 4.373 MB / 432.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3313, allocations: 0 / 432.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3313, allocations: 0 / 432.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.209e-05/0.3314, allocations: 4 kB / 432.2 MB, free: 9.215 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.005639/0.337, allocations: 3.061 MB / 435.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.3371, allocations: 8.031 kB / 435.3 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007753/0.3379, allocations: 317.4 kB / 435.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.3403, allocations: 1.629 MB / 437.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.3405, allocations: 164.4 kB / 437.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/0.3408, allocations: 216 kB / 437.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004529/0.3453, allocations: 2.921 MB / 440.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.722e-05/0.3454, allocations: 11.89 kB / 440.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002026/0.3456, allocations: 84 kB / 440.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.3457, allocations: 116.3 kB / 440.7 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003981/0.3497, allocations: 2.433 MB / 443.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01578/0.3655, allocations: 9.02 MB / 452.2 MB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.3681, allocations: 1.696 MB / 453.9 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/0.3699, allocations: 0.9846 MB / 454.9 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002775/0.3702, allocations: 207.1 kB / 455.1 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.3702, allocations: 43.56 kB / 455.1 MB, free: 1.645 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 2.856e-06/0.3702, allocations: 4.375 kB / 455.1 MB, free: 1.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01549/0.3857, allocations: 6.562 MB / 461.7 MB, free: 10.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.3858, allocations: 68.39 kB / 461.7 MB, free: 10.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003253/0.3891, allocations: 1.569 MB / 463.3 MB, free: 9.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000248/0.3893, allocations: 41.7 kB / 463.3 MB, free: 9.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008548/0.3902, allocations: 1.104 MB / 464.4 MB, free: 8.094 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004628/0.3907, allocations: 425.8 kB / 464.9 MB, free: 7.672 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005727/0.3913, allocations: 275.3 kB / 465.1 MB, free: 7.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3914, allocations: 305.1 kB / 465.4 MB, free: 7.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/0.3927, allocations: 0.7144 MB / 466.1 MB, free: 6.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001543/0.3943, allocations: 1.146 MB / 467.3 MB, free: 5.055 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002858/0.3972, allocations: 1.963 MB / 469.3 MB, free: 2.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.3972, allocations: 4 kB / 469.3 MB, free: 2.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004427/0.4016, allocations: 2.53 MB / 471.8 MB, free: 344 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.4017, allocations: 10.66 kB / 471.8 MB, free: 336 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/0.4017, allocations: 16 kB / 471.8 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.4027, allocations: 427.2 kB / 472.2 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.4041, allocations: 351.4 kB / 472.6 MB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007357/0.4114, allocations: 7.119 MB / 479.7 MB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001684/0.4132, allocations: 107.7 kB / 479.8 MB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002677/0.4134, allocations: 67.98 kB / 479.9 MB, free: 7.836 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.001628/0.4151, allocations: 0.7122 MB / 480.6 MB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005928/0.4157, allocations: 173.9 kB / 480.7 MB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004577/0.4203, allocations: 2.202 MB / 482.9 MB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.4203, allocations: 12 kB / 483 MB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/0.4203, allocations: 4 kB / 483 MB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.4204, allocations: 11.92 kB / 483 MB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009801/0.4302, allocations: 4.771 MB / 487.7 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.4302, allocations: 4 kB / 487.7 MB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.4313, allocations: 228.1 kB / 488 MB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.4325, allocations: 451 kB / 488.4 MB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.4327, allocations: 35.98 kB / 488.4 MB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008601/0.4413, allocations: 8.677 MB / 497.1 MB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.4413, allocations: 11.94 kB / 497.1 MB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005459/0.4468, allocations: 3.21 MB / 0.4886 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009253/0.4477, allocations: 398.9 kB / 0.489 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004139/0.4482, allocations: 32 kB / 0.489 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.4493, allocations: 87.89 kB / 0.4891 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.4496, allocations: 100.8 kB / 0.4892 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.684e-05/0.4497, allocations: 35.98 kB / 0.4892 GB, free: 1.809 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001907/0.4516, allocations: 1.07 MB / 0.4903 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4516, allocations: 0 / 0.4903 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001907/0.4535, allocations: 484.1 kB / 0.4908 GB, free: 276 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.0004633/0.454, allocations: 203 kB / 0.4909 GB, free: 60 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004064/0.4581, allocations: 2.305 MB / 0.4932 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.4581, allocations: 320 / 0.4932 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002547/0.4607, allocations: 1.477 MB / 0.4946 GB, free: 12.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.4633, allocations: 488 kB / 0.4951 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008196/0.4715, allocations: 4.664 MB / 0.4997 GB, free: 6.957 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002012/0.4735, allocations: 1.867 MB / 0.5015 GB, free: 5.055 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001294/0.4748, allocations: 386.9 kB / 0.5018 GB, free: 4.672 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/0.4753, allocations: 123.4 kB / 0.502 GB, free: 4.551 MB / 430.1 MB Notification: Performance of SimCode: time 2.024e-06/0.4753, allocations: 0 / 0.502 GB, free: 4.551 MB / 430.1 MB Notification: Performance of Templates: time 0.04774/0.5231, allocations: 26.83 MB / 0.5282 GB, free: 9.969 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/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