Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 187 kB / 17.92 MB, free: 3.848 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.168/1.168, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008871/0.000887, allocations: 105.7 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007205/0.0007205, allocations: 39.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.188, allocations: 46.62 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.01612/0.2041, allocations: 21.39 MB / 395.2 MB, free: 28.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.2145, allocations: 6.368 MB / 401.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003781/0.2183, allocations: 119.5 kB / 401.7 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004134/0.2225, allocations: 1.26 MB / 403 MB, free: 20.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006156/0.2287, allocations: 1.853 MB / 404.8 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003052/0.2318, allocations: 1.2 MB / 406 MB, free: 17.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006765/0.2385, allocations: 7.178 MB / 413.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005324/0.2439, allocations: 4.599 MB / 417.8 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003014/0.2469, allocations: 2.514 MB / 420.3 MB, free: 2.801 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004171/0.2511, allocations: 3.354 MB / 423.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001671/0.2528, allocations: 0.4922 MB / 424.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002686/0.2555, allocations: 0.7808 MB / 424.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002227/0.2578, allocations: 1.678 MB / 426.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00478/0.2626, allocations: 3.176 MB / 429.8 MB, free: 9.285 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.2739, allocations: 10.43 MB / 440.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2739, allocations: 0 / 440.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2739, allocations: 0 / 440.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003291/0.2743, allocations: 4 kB / 440.2 MB, free: 14.82 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01706/0.2914, allocations: 6.91 MB / 447.1 MB, free: 7.824 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2914, allocations: 11.97 kB / 447.1 MB, free: 7.812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004616/0.296, allocations: 1.071 MB / 448.2 MB, free: 6.734 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006741/0.3028, allocations: 3.445 MB / 451.7 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000387/0.3032, allocations: 419 kB / 452.1 MB, free: 2.805 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001117/0.3043, allocations: 0.5194 MB / 452.6 MB, free: 2.285 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.3172, allocations: 7.052 MB / 459.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.3174, allocations: 15.83 kB / 459.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005559/0.3179, allocations: 216 kB / 459.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002381/0.3182, allocations: 270.6 kB / 460.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01164/0.3298, allocations: 5.925 MB / 466.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03493/0.3648, allocations: 22.44 MB / 488.5 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007395/0.3722, allocations: 8.278 MB / 496.8 MB, free: 4.559 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003156/0.3754, allocations: 2.191 MB / 499 MB, free: 2.359 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009954/0.3854, allocations: 6.183 MB / 0.4933 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.856e-05/0.3855, allocations: 56.56 kB / 0.4934 GB, free: 11.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=220): time 3.607e-06/0.3855, allocations: 0 / 0.4934 GB, free: 11.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=240): time 0.02024/0.4058, allocations: 11.14 MB / 0.5042 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.4058, allocations: 77.41 kB / 0.5043 GB, free: 0.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1361/0.5419, allocations: 3.151 MB / 0.5074 GB, free: 118 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003477/0.5423, allocations: 66.67 kB / 0.5075 GB, free: 117.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.5435, allocations: 2.502 MB / 0.5099 GB, free: 116.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005653/0.544, allocations: 0.8298 MB / 0.5107 GB, free: 116.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008117/0.5449, allocations: 0.5597 MB / 0.5113 GB, free: 115.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.472e-05/0.5449, allocations: 305.2 kB / 0.5115 GB, free: 115.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/0.5467, allocations: 1.333 MB / 0.5128 GB, free: 115.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002191/0.5489, allocations: 2.342 MB / 0.5151 GB, free: 113.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004244/0.5532, allocations: 3.918 MB / 0.519 GB, free: 110.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/0.5532, allocations: 12.22 kB / 0.519 GB, free: 110.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006336/0.5596, allocations: 4.711 MB / 0.5236 GB, free: 108.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.5596, allocations: 20.09 kB / 0.5236 GB, free: 108.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.048e-05/0.5597, allocations: 32.16 kB / 0.5236 GB, free: 108.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009884/0.5607, allocations: 0.5242 MB / 0.5241 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002295/0.563, allocations: 0.7493 MB / 0.5249 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005781/0.5688, allocations: 9.424 MB / 0.5341 GB, free: 100.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002421/0.5712, allocations: 185.9 kB / 0.5342 GB, free: 100.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002044/0.5714, allocations: 141.9 kB / 0.5344 GB, free: 100.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002506/0.5739, allocations: 1.569 MB / 0.5359 GB, free: 99.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004902/0.5744, allocations: 355.6 kB / 0.5363 GB, free: 98.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005152/0.5796, allocations: 4.039 MB / 0.5402 GB, free: 94.53 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.5796, allocations: 24 kB / 0.5402 GB, free: 94.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.5796, allocations: 11.98 kB / 0.5402 GB, free: 94.49 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.5796, allocations: 7.969 kB / 0.5402 GB, free: 94.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01031/0.59, allocations: 9.003 MB / 0.549 GB, free: 85.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.59, allocations: 4 kB / 0.549 GB, free: 85.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/0.5915, allocations: 411.4 kB / 0.5494 GB, free: 84.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.593, allocations: 0.7317 MB / 0.5501 GB, free: 84.19 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.5931, allocations: 67.97 kB / 0.5502 GB, free: 84.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00957/0.6027, allocations: 15.31 MB / 0.5652 GB, free: 67.76 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.6027, allocations: 7.938 kB / 0.5652 GB, free: 67.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04413/0.6469, allocations: 42.3 MB / 0.6065 GB, free: 23.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.648, allocations: 0.692 MB / 0.6072 GB, free: 23.17 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003402/0.6483, allocations: 55.98 kB / 0.6072 GB, free: 23.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/0.6498, allocations: 143.9 kB / 0.6073 GB, free: 22.97 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003637/0.6501, allocations: 181.6 kB / 0.6075 GB, free: 22.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.6503, allocations: 75.98 kB / 0.6076 GB, free: 22.72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002293/0.6526, allocations: 2.123 MB / 0.6097 GB, free: 20.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6526, allocations: 0 / 0.6097 GB, free: 20.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003825/0.6564, allocations: 1.37 MB / 0.611 GB, free: 19.24 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004739/0.6569, allocations: 245.4 kB / 0.6112 GB, free: 19 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005026/0.6619, allocations: 4.135 MB / 0.6153 GB, free: 14.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.82e-06/0.662, allocations: 4 kB / 0.6153 GB, free: 14.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00307/0.665, allocations: 2.746 MB / 0.618 GB, free: 11.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/0.6686, allocations: 0.9093 MB / 0.6188 GB, free: 11.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/0.685, allocations: 15.05 MB / 0.6335 GB, free: 11.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005119/0.6902, allocations: 3.497 MB / 0.637 GB, free: 8.238 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00316/0.6934, allocations: 0.8307 MB / 0.6378 GB, free: 7.406 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007544/0.6941, allocations: 251.4 kB / 0.638 GB, free: 7.16 MB / 410.7 MB Notification: Performance of SimCode: time 1.984e-06/0.6942, allocations: 0 / 0.638 GB, free: 7.16 MB / 410.7 MB Notification: Performance of Templates: time 0.2265/0.9206, allocations: 58.57 MB / 0.6952 GB, free: 112.7 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches