Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008491/0.0008491, allocations: 93.25 kB / 17.3 MB, free: 6.395 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.0008267/0.0008269, allocations: 172.9 kB / 18.2 MB, free: 5.551 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.366/1.366, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004825/0.0004825, allocations: 12.22 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09961/0.1001, allocations: 47.59 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01831/0.1185, allocations: 14.9 MB / 343.9 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.1305, allocations: 5.273 MB / 349.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003924/0.1345, allocations: 83.62 kB / 349.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004906/0.1394, allocations: 0.9598 MB / 350.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005992/0.1454, allocations: 1.201 MB / 351.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003235/0.1487, allocations: 0.8694 MB / 352.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008522/0.1572, allocations: 4.084 MB / 356.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005865/0.1631, allocations: 2.966 MB / 359.3 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003138/0.1663, allocations: 1.318 MB / 360.6 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003773/0.1701, allocations: 1.828 MB / 362.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009924/0.1712, allocations: 204 kB / 362.7 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002243/0.1734, allocations: 439.7 kB / 363.1 MB, free: 1.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.1746, allocations: 0.9029 MB / 364 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002895/0.1775, allocations: 1.843 MB / 365.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.1878, allocations: 6.427 MB / 372.3 MB, free: 8.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1878, allocations: 4 kB / 372.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.809e-06/0.1879, allocations: 0 / 372.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002569/0.1881, allocations: 0 / 372.3 MB, free: 8.238 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01369/0.2018, allocations: 3.917 MB / 376.2 MB, free: 4.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.2019, allocations: 12.03 kB / 376.2 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004119/0.206, allocations: 0.6675 MB / 376.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005622/0.2117, allocations: 2.338 MB / 379.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000278/0.212, allocations: 271.5 kB / 379.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007182/0.2127, allocations: 343.8 kB / 379.8 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2155/0.4283, allocations: 4.458 MB / 384.3 MB, free: 47.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.032e-05/0.4284, allocations: 11 kB / 384.3 MB, free: 47.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003102/0.4287, allocations: 140.5 kB / 384.4 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000182/0.4289, allocations: 163 kB / 384.6 MB, free: 47.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009133/0.4381, allocations: 3.741 MB / 388.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02561/0.4637, allocations: 14.56 MB / 402.9 MB, free: 36.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004042/0.4678, allocations: 5.364 MB / 408.2 MB, free: 31.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.4695, allocations: 1.281 MB / 409.5 MB, free: 30.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005544/0.475, allocations: 3.828 MB / 413.3 MB, free: 26.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.4751, allocations: 51.88 kB / 413.4 MB, free: 26.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 3.416e-06/0.4751, allocations: 0 / 413.4 MB, free: 26.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.008263/0.4834, allocations: 5.481 MB / 418.9 MB, free: 21.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.4834, allocations: 64.72 kB / 418.9 MB, free: 21.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002606/0.4861, allocations: 2.106 MB / 421 MB, free: 19.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.4862, allocations: 49.7 kB / 421.1 MB, free: 19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007881/0.487, allocations: 1.653 MB / 422.7 MB, free: 17.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003/0.4873, allocations: 464.1 kB / 423.2 MB, free: 16.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.4875, allocations: 147.8 kB / 423.3 MB, free: 16.74 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.25e-05/0.4875, allocations: 309.1 kB / 423.6 MB, free: 16.44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009448/0.4885, allocations: 0.7145 MB / 424.3 MB, free: 15.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.4896, allocations: 1.358 MB / 425.7 MB, free: 14.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002139/0.4918, allocations: 2.227 MB / 427.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.4918, allocations: 8 kB / 427.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003684/0.4955, allocations: 2.513 MB / 430.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.4955, allocations: 16 kB / 430.5 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/0.4956, allocations: 20.5 kB / 430.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003411/0.4959, allocations: 142.5 kB / 430.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.4975, allocations: 467.2 kB / 431.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/0.4993, allocations: 3.084 MB / 434.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/0.5012, allocations: 119.9 kB / 434.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.5014, allocations: 76 kB / 434.4 MB, free: 4.824 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001878/0.5033, allocations: 1.059 MB / 435.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000435/0.5037, allocations: 213.3 kB / 435.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/0.5071, allocations: 2.177 MB / 437.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.5072, allocations: 16 kB / 437.8 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.5072, allocations: 4 kB / 437.8 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.5072, allocations: 7.969 kB / 437.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007932/0.5151, allocations: 5.172 MB / 443 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.749e-06/0.5152, allocations: 4 kB / 443 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000976/0.5162, allocations: 231.9 kB / 443.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007413/0.5169, allocations: 279.1 kB / 443.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-05/0.517, allocations: 31.98 kB / 443.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007013/0.5241, allocations: 7.11 MB / 450.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5241, allocations: 4.094 kB / 450.7 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005346/0.5295, allocations: 3.188 MB / 453.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/0.5307, allocations: 466.3 kB / 454.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002526/0.5309, allocations: 24 kB / 454.3 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009882/0.5319, allocations: 76.92 kB / 454.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.5322, allocations: 88.81 kB / 454.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.062e-05/0.5322, allocations: 47.92 kB / 454.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002306/0.5346, allocations: 1.427 MB / 456 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5346, allocations: 4 kB / 456 MB, free: 14.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002094/0.5367, allocations: 0.5557 MB / 456.5 MB, free: 13.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003768/0.5371, allocations: 165.7 kB / 456.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003514/0.5406, allocations: 2.094 MB / 458.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/0.5406, allocations: 7.938 kB / 458.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001988/0.5426, allocations: 1.384 MB / 460.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003494/0.5461, allocations: 0.5185 MB / 460.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.5569, allocations: 7.714 MB / 468.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00216/0.5591, allocations: 2.409 MB / 470.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001803/0.561, allocations: 498.5 kB / 471.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004408/0.5614, allocations: 159.4 kB / 471.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of SimCode: time 2.424e-06/0.5614, allocations: 0 / 471.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of Templates: time 0.05147/0.6129, allocations: 27.1 MB / 498.5 MB, free: 3.574 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches