Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001758/0.001758, allocations: 192 kB / 18 MB, free: 4.977 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.371/1.371, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009689/0.0009689, allocations: 51.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3459, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01801/0.3639, allocations: 15.9 MB / 416.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.3744, allocations: 5.368 MB / 422 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003417/0.3779, allocations: 103.6 kB / 422.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003632/0.3815, allocations: 1.176 MB / 423.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004885/0.3866, allocations: 1.406 MB / 424.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002454/0.389, allocations: 0.9518 MB / 425.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004606/0.3936, allocations: 3.966 MB / 429.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00405/0.3977, allocations: 3.615 MB / 433.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00259/0.4003, allocations: 1.896 MB / 435.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002973/0.4033, allocations: 2.269 MB / 437.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007585/0.4041, allocations: 0.5195 MB / 437.9 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.4055, allocations: 0.738 MB / 438.7 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.4066, allocations: 1.293 MB / 439.9 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002521/0.4092, allocations: 2.252 MB / 442.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00665/0.4158, allocations: 6.901 MB / 449.1 MB, free: 8.289 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.4158, allocations: 4 kB / 449.1 MB, free: 8.285 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4159, allocations: 0 / 449.1 MB, free: 8.285 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001016/0.416, allocations: 3.938 kB / 449.1 MB, free: 8.281 MB / 366.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.009862/0.4258, allocations: 4.669 MB / 453.8 MB, free: 3.539 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.4259, allocations: 12.03 kB / 453.8 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002759/0.4287, allocations: 0.6714 MB / 454.5 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004032/0.4327, allocations: 2.533 MB / 457 MB, free: 272 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.4329, allocations: 267.2 kB / 457.3 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005127/0.4334, allocations: 348.1 kB / 457.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006996/0.4404, allocations: 4.464 MB / 462.1 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.587e-05/0.4405, allocations: 7.984 kB / 462.1 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003025/0.4408, allocations: 144 kB / 462.2 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001514/0.441, allocations: 162.8 kB / 462.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005934/0.4469, allocations: 3.747 MB / 466.1 MB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01959/0.4665, allocations: 14.3 MB / 480.4 MB, free: 8.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004844/0.4714, allocations: 5.369 MB / 485.8 MB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/0.4733, allocations: 1.263 MB / 487 MB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005878/0.4792, allocations: 3.799 MB / 490.8 MB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.4792, allocations: 51.81 kB / 490.9 MB, free: 13.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 2.715e-06/0.4792, allocations: 0 / 490.9 MB, free: 13.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.008855/0.4881, allocations: 5.502 MB / 496.4 MB, free: 7.402 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.4881, allocations: 64.72 kB / 496.5 MB, free: 7.328 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002719/0.4909, allocations: 2.106 MB / 498.6 MB, free: 5.188 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.492e-05/0.491, allocations: 45.7 kB / 498.6 MB, free: 5.137 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.4921, allocations: 1.653 MB / 0.4885 GB, free: 3.465 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/0.4924, allocations: 465.4 kB / 0.489 GB, free: 3.004 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005192/0.4929, allocations: 339.1 kB / 0.4893 GB, free: 2.664 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.115e-05/0.493, allocations: 305.1 kB / 0.4896 GB, free: 2.363 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.4941, allocations: 0.7222 MB / 0.4903 GB, free: 1.641 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.4956, allocations: 1.348 MB / 0.4916 GB, free: 4 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002747/0.4984, allocations: 2.238 MB / 0.4938 GB, free: 13.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.4984, allocations: 4 kB / 0.4938 GB, free: 13.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003858/0.5023, allocations: 2.517 MB / 0.4963 GB, free: 10.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.5023, allocations: 16 kB / 0.4963 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/0.5023, allocations: 20 kB / 0.4963 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003812/0.5027, allocations: 143 kB / 0.4964 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/0.5043, allocations: 463.2 kB / 0.4969 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002637/0.507, allocations: 3.36 MB / 0.5002 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.5083, allocations: 111.9 kB / 0.5003 GB, free: 6.539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.5084, allocations: 80 kB / 0.5003 GB, free: 6.461 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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.001688/0.5101, allocations: 1.055 MB / 0.5014 GB, free: 5.395 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003123/0.5104, allocations: 213.3 kB / 0.5016 GB, free: 5.184 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003457/0.5139, allocations: 2.189 MB / 0.5037 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.5139, allocations: 12 kB / 0.5037 GB, free: 2.922 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5139, allocations: 4 kB / 0.5037 GB, free: 2.918 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.514, allocations: 11.92 kB / 0.5037 GB, free: 2.906 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0074/0.5214, allocations: 5.175 MB / 0.5088 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.5214, allocations: 7.984 kB / 0.5088 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009728/0.5224, allocations: 227.7 kB / 0.509 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006778/0.5231, allocations: 271.4 kB / 0.5093 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-05/0.5232, allocations: 31.98 kB / 0.5093 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006766/0.5299, allocations: 7.814 MB / 0.5169 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.53, allocations: 8.094 kB / 0.5169 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004542/0.5345, allocations: 3.191 MB / 0.5201 GB, free: 1.395 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008171/0.5353, allocations: 450.4 kB / 0.5205 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002248/0.5356, allocations: 35.98 kB / 0.5205 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009099/0.5365, allocations: 67.92 kB / 0.5206 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.5367, allocations: 89.12 kB / 0.5207 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.944e-05/0.5368, allocations: 44.17 kB / 0.5207 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002004/0.5388, allocations: 1.431 MB / 0.5221 GB, free: 15.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5388, allocations: 4 kB / 0.5221 GB, free: 15.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001859/0.5406, allocations: 0.5586 MB / 0.5227 GB, free: 14.69 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.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.0003213/0.541, allocations: 174.9 kB / 0.5228 GB, free: 14.51 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003256/0.5442, allocations: 2.107 MB / 0.5249 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.5443, allocations: 288 / 0.5249 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001922/0.5462, allocations: 1.389 MB / 0.5262 GB, free: 10.92 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/0.5484, allocations: 0.5531 MB / 0.5268 GB, free: 10.37 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009315/0.5577, allocations: 6.049 MB / 0.5327 GB, free: 4.262 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002046/0.5598, allocations: 2.417 MB / 0.535 GB, free: 1.809 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001417/0.5612, allocations: 0.4907 MB / 0.5355 GB, free: 1.316 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000414/0.5616, allocations: 151.4 kB / 0.5357 GB, free: 1.172 MB / 462.1 MB Notification: Performance of SimCode: time 3.61e-07/0.5616, allocations: 0 / 0.5357 GB, free: 1.172 MB / 462.1 MB Notification: Performance of Templates: time 0.2523/0.8139, allocations: 27.18 MB / 0.5622 GB, free: 113.1 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches