Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 100.5 kB / 18.35 MB, free: 4.648 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.001019/0.001019, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.1 MB / 225.2 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 51.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1213, allocations: 46.62 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01211/0.1335, allocations: 10.28 MB / 339 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007731/0.1413, allocations: 3.467 MB / 342.5 MB, free: 5.945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001656/0.143, allocations: 51.75 kB / 342.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002147/0.1452, allocations: 0.7685 MB / 343.3 MB, free: 5.121 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003103/0.1483, allocations: 0.8385 MB / 344.1 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.1494, allocations: 419.4 kB / 344.5 MB, free: 3.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003446/0.1528, allocations: 2.759 MB / 347.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002832/0.1557, allocations: 2.37 MB / 349.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001903/0.1576, allocations: 1.246 MB / 350.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001984/0.1596, allocations: 1.58 MB / 352.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003977/0.16, allocations: 336 kB / 352.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007778/0.1608, allocations: 439.8 kB / 353.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008577/0.1617, allocations: 0.9388 MB / 354.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001716/0.1634, allocations: 1.501 MB / 355.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004395/0.1678, allocations: 4.381 MB / 360.1 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1678, allocations: 0 / 360.1 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1678, allocations: 4 kB / 360.1 MB, free: 4.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.229e-05/0.1679, allocations: 0 / 360.1 MB, free: 4.227 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.006228/0.1741, allocations: 3.049 MB / 363.1 MB, free: 1.113 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1742, allocations: 12.03 kB / 363.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007512/0.1749, allocations: 309.4 kB / 363.4 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002821/0.1778, allocations: 1.528 MB / 365 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.178, allocations: 180.5 kB / 365.2 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003145/0.1783, allocations: 220 kB / 365.4 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004644/0.1829, allocations: 2.905 MB / 368.3 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.657e-05/0.183, allocations: 7.906 kB / 368.3 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001943/0.1832, allocations: 95.98 kB / 368.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/0.1833, allocations: 116.3 kB / 368.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004155/0.1875, allocations: 2.437 MB / 370.9 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2642/0.4518, allocations: 9.007 MB / 379.9 MB, free: 49.33 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003591/0.4554, allocations: 1.694 MB / 381.6 MB, free: 48.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002559/0.458, allocations: 0.9956 MB / 382.6 MB, free: 48.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003151/0.4584, allocations: 210.6 kB / 382.8 MB, free: 48.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.4584, allocations: 46.41 kB / 382.9 MB, free: 48.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 7.323e-06/0.4584, allocations: 0 / 382.9 MB, free: 48.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01749/0.4759, allocations: 6.519 MB / 389.4 MB, free: 46.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.476, allocations: 64.47 kB / 389.5 MB, free: 46.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003546/0.4796, allocations: 1.562 MB / 391 MB, free: 45.67 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.4797, allocations: 47.28 kB / 391.1 MB, free: 45.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008945/0.4807, allocations: 1.117 MB / 392.2 MB, free: 44.76 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003571/0.481, allocations: 431.7 kB / 392.6 MB, free: 44.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004381/0.4815, allocations: 272.7 kB / 392.9 MB, free: 44.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.874e-05/0.4816, allocations: 305.1 kB / 393.2 MB, free: 44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.4828, allocations: 0.7114 MB / 393.9 MB, free: 43.76 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001626/0.4844, allocations: 1.136 MB / 395 MB, free: 42.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002989/0.4875, allocations: 1.962 MB / 397 MB, free: 41.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.405e-05/0.4875, allocations: 3.906 kB / 397 MB, free: 41.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004435/0.4919, allocations: 2.516 MB / 399.5 MB, free: 40.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.931e-05/0.492, allocations: 12.12 kB / 399.5 MB, free: 40.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.773e-05/0.492, allocations: 11.5 kB / 399.5 MB, free: 40.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.4931, allocations: 435.3 kB / 399.9 MB, free: 40.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.4944, allocations: 347.3 kB / 400.3 MB, free: 40.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006024/0.5004, allocations: 7.142 MB / 407.4 MB, free: 34.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/0.5025, allocations: 103.7 kB / 407.5 MB, free: 34.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/0.5026, allocations: 63.59 kB / 407.6 MB, free: 34.45 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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.001695/0.5043, allocations: 0.713 MB / 408.3 MB, free: 33.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004981/0.5049, allocations: 173.6 kB / 408.5 MB, free: 33.87 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003457/0.5083, allocations: 2.189 MB / 410.7 MB, free: 31.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.5083, allocations: 12 kB / 410.7 MB, free: 31.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.5084, allocations: 4 kB / 410.7 MB, free: 31.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.5084, allocations: 3.984 kB / 410.7 MB, free: 31.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007511/0.5159, allocations: 4.766 MB / 415.4 MB, free: 26.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.5159, allocations: 8 kB / 415.5 MB, free: 26.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008606/0.5168, allocations: 220.2 kB / 415.7 MB, free: 26.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.5179, allocations: 458.7 kB / 416.1 MB, free: 26.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.769e-05/0.518, allocations: 40.83 kB / 416.2 MB, free: 26.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006791/0.5248, allocations: 8.662 MB / 424.8 MB, free: 16.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.5248, allocations: 15.97 kB / 424.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004789/0.5296, allocations: 3.222 MB / 428.1 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.5308, allocations: 390.9 kB / 428.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002772/0.5311, allocations: 35.98 kB / 428.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009068/0.532, allocations: 90.58 kB / 428.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.5323, allocations: 100.8 kB / 428.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.334e-05/0.5324, allocations: 43.94 kB / 428.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00169/0.5341, allocations: 1.074 MB / 429.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5341, allocations: 0 / 429.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002274/0.5364, allocations: 491.9 kB / 430.3 MB, free: 11.37 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (108): * Single equations (assignments): 104 * 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.0004784/0.5369, allocations: 192.4 kB / 430.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003666/0.5406, allocations: 2.288 MB / 432.7 MB, free: 8.828 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.5406, allocations: 4 kB / 432.7 MB, free: 8.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.5427, allocations: 1.473 MB / 434.2 MB, free: 7.305 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/0.5452, allocations: 480.6 kB / 434.7 MB, free: 6.852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008528/0.5537, allocations: 4.687 MB / 439.4 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/0.5552, allocations: 1.867 MB / 441.2 MB, free: 208 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001376/0.5566, allocations: 390.9 kB / 441.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003606/0.557, allocations: 123.4 kB / 441.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of SimCode: time 1.132e-06/0.557, allocations: 6.078 kB / 441.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of Templates: time 0.05246/0.6095, allocations: 26.36 MB / 468.1 MB, free: 5.309 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches