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.001497/0.001497, allocations: 105.1 kB / 17.16 MB, free: 6.316 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.00108/0.00108, allocations: 190 kB / 18.07 MB, free: 5.414 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.575/1.575, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001709/0.001709, allocations: 51.94 kB / 280 MB, free: 3.57 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1258, allocations: 46.62 MB / 326.6 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01222/0.1381, allocations: 10.19 MB / 336.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008801/0.147, allocations: 3.452 MB / 340.2 MB, free: 7.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.1488, allocations: 43.81 kB / 340.3 MB, free: 7.125 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001992/0.1508, allocations: 0.6837 MB / 341 MB, free: 6.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002894/0.1538, allocations: 0.7459 MB / 341.7 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1549, allocations: 375.6 kB / 342.1 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003982/0.1589, allocations: 3.086 MB / 345.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002357/0.1613, allocations: 1.993 MB / 347.2 MB, free: 172 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.163, allocations: 1.094 MB / 348.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001868/0.1648, allocations: 1.525 MB / 349.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003499/0.1652, allocations: 208 kB / 350 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007609/0.166, allocations: 323.7 kB / 350.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007797/0.1668, allocations: 0.8138 MB / 351.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001438/0.1682, allocations: 1.368 MB / 352.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003696/0.1719, allocations: 4.229 MB / 356.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1719, allocations: 0 / 356.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.172, allocations: 0 / 356.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.174e-05/0.172, allocations: 0 / 356.7 MB, free: 6.586 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.006797/0.1788, allocations: 3.053 MB / 359.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.862e-05/0.179, allocations: 15.97 kB / 359.8 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007922/0.1798, allocations: 309.4 kB / 360.1 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002537/0.1823, allocations: 1.509 MB / 361.6 MB, free: 1.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.1825, allocations: 180.5 kB / 361.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003371/0.1828, allocations: 223.9 kB / 362 MB, free: 1.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005079/0.1879, allocations: 2.913 MB / 364.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.476e-05/0.188, allocations: 11.84 kB / 364.9 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001978/0.1882, allocations: 87.98 kB / 365 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001315/0.1883, allocations: 116.3 kB / 365.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004246/0.1926, allocations: 2.43 MB / 367.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01418/0.2068, allocations: 9.113 MB / 376.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00238/0.2092, allocations: 1.71 MB / 378.4 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1901/0.3994, allocations: 0.9843 MB / 379.4 MB, free: 51.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003417/0.3997, allocations: 202.1 kB / 379.5 MB, free: 51.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.3998, allocations: 43.09 kB / 379.6 MB, free: 51.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.905e-06/0.3998, allocations: 1.344 kB / 379.6 MB, free: 51.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01544/0.4153, allocations: 6.535 MB / 386.1 MB, free: 49.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.4153, allocations: 63.84 kB / 386.2 MB, free: 49.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002452/0.4178, allocations: 1.561 MB / 387.7 MB, free: 48.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.073e-05/0.4179, allocations: 46.08 kB / 387.8 MB, free: 48.36 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006947/0.4186, allocations: 1.11 MB / 388.9 MB, free: 47.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.4189, allocations: 431.3 kB / 389.3 MB, free: 47.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004436/0.4193, allocations: 273.8 kB / 389.6 MB, free: 47.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.864e-05/0.4194, allocations: 302.4 kB / 389.9 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.4205, allocations: 0.7119 MB / 390.6 MB, free: 46.51 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.4218, allocations: 1.134 MB / 391.7 MB, free: 45.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002326/0.4241, allocations: 1.964 MB / 393.7 MB, free: 44.56 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.4242, allocations: 6.141 kB / 393.7 MB, free: 44.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003755/0.4279, allocations: 2.516 MB / 396.2 MB, free: 43.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.428, allocations: 12.44 kB / 396.2 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.428, allocations: 11.88 kB / 396.2 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008542/0.4288, allocations: 430.4 kB / 396.7 MB, free: 43.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.4299, allocations: 346.7 kB / 397 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004882/0.4348, allocations: 6.548 MB / 403.6 MB, free: 37.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.4361, allocations: 105.3 kB / 403.7 MB, free: 37.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-05/0.4362, allocations: 69.98 kB / 403.7 MB, free: 37.91 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.001072/0.4373, allocations: 0.7191 MB / 404.4 MB, free: 37.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.4376, allocations: 172.7 kB / 404.6 MB, free: 37.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/0.4406, allocations: 2.185 MB / 406.8 MB, free: 35.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.4406, allocations: 12 kB / 406.8 MB, free: 35.17 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.4406, allocations: 4 kB / 406.8 MB, free: 35.17 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.4406, allocations: 7.969 kB / 406.8 MB, free: 35.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006136/0.4468, allocations: 4.784 MB / 411.6 MB, free: 30.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.4468, allocations: 8.469 kB / 411.6 MB, free: 30.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008268/0.4476, allocations: 223.7 kB / 411.8 MB, free: 30.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009698/0.4486, allocations: 459.7 kB / 412.3 MB, free: 29.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-05/0.4487, allocations: 38.59 kB / 412.3 MB, free: 29.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005624/0.4543, allocations: 7.972 MB / 420.3 MB, free: 21.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.4544, allocations: 15.88 kB / 420.3 MB, free: 21.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004284/0.4586, allocations: 3.208 MB / 423.5 MB, free: 17.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009056/0.4596, allocations: 391.6 kB / 423.9 MB, free: 17.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004026/0.46, allocations: 35.98 kB / 423.9 MB, free: 17.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.461, allocations: 91.78 kB / 424 MB, free: 17.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.4613, allocations: 108.3 kB / 424.1 MB, free: 17.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-05/0.4614, allocations: 39.98 kB / 424.2 MB, free: 17.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001549/0.4629, allocations: 1.066 MB / 425.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4629, allocations: 3.938 kB / 425.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001926/0.4648, allocations: 486.8 kB / 425.7 MB, free: 15.52 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.000344/0.4652, allocations: 201.8 kB / 425.9 MB, free: 15.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003196/0.4684, allocations: 2.278 MB / 428.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.4684, allocations: 0 / 428.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.4704, allocations: 1.475 MB / 429.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/0.4729, allocations: 459.1 kB / 430.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008711/0.4816, allocations: 5.711 MB / 435.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00156/0.4832, allocations: 1.867 MB / 437.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001321/0.4845, allocations: 390.9 kB / 438.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000432/0.485, allocations: 119.4 kB / 438.2 MB, free: 2.844 MB / 318.1 MB Notification: Performance of SimCode: time 1.563e-06/0.485, allocations: 4 kB / 438.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of Templates: time 0.0461/0.5311, allocations: 25.32 MB / 463.5 MB, free: 9.5 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Inverter/SMPM_Inverter.csv","../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