Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008699/0.00087, allocations: 179 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.182/1.182, allocations: 225.7 MB / 243.2 MB, free: 8.512 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008339/0.0008338, allocations: 95.14 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002115/0.0002116, allocations: 7.938 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1978, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01028/0.2081, allocations: 14.02 MB / 418.6 MB, free: 17.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007782/0.2159, allocations: 6.561 MB / 425.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001789/0.2177, allocations: 99.56 kB / 425.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.2198, allocations: 0.9792 MB / 426.3 MB, free: 9.258 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002719/0.2226, allocations: 1.581 MB / 427.8 MB, free: 7.578 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.2241, allocations: 1.228 MB / 429.1 MB, free: 6.258 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003109/0.2272, allocations: 4.088 MB / 433.2 MB, free: 2.156 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003186/0.2304, allocations: 3.014 MB / 436.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002034/0.2325, allocations: 1.346 MB / 437.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00269/0.2352, allocations: 1.793 MB / 439.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004455/0.2356, allocations: 204 kB / 439.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.2368, allocations: 431.7 kB / 439.9 MB, free: 11.29 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008028/0.2376, allocations: 0.895 MB / 440.8 MB, free: 10.39 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00185/0.2394, allocations: 1.843 MB / 442.7 MB, free: 8.535 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006143/0.2456, allocations: 6.439 MB / 449.1 MB, free: 2.074 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2456, allocations: 0 / 449.1 MB, free: 2.074 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2456, allocations: 0 / 449.1 MB, free: 2.074 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001391/0.2458, allocations: 4 kB / 449.1 MB, free: 2.07 MB / 314.7 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.008814/0.2546, allocations: 3.925 MB / 453 MB, free: 14.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2546, allocations: 8.031 kB / 453 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003142/0.2578, allocations: 0.6831 MB / 453.7 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004218/0.262, allocations: 2.435 MB / 456.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.2623, allocations: 263.5 kB / 456.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006907/0.263, allocations: 355.8 kB / 456.8 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007995/0.271, allocations: 4.437 MB / 461.2 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.131e-05/0.2711, allocations: 7.938 kB / 461.2 MB, free: 5.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003037/0.2714, allocations: 148 kB / 461.4 MB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001777/0.2716, allocations: 162.8 kB / 461.5 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006785/0.2784, allocations: 3.731 MB / 465.2 MB, free: 1.742 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02165/0.3001, allocations: 14.55 MB / 479.8 MB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004797/0.3049, allocations: 5.349 MB / 485.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/0.3068, allocations: 1.287 MB / 486.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005941/0.3128, allocations: 3.838 MB / 490.3 MB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.3128, allocations: 47.81 kB / 490.3 MB, free: 7.441 MB / 362.7 MB Notification: Performance of pre-optimization done (n=128): time 2.976e-06/0.3128, allocations: 0 / 490.3 MB, free: 7.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=132): time 0.008896/0.3217, allocations: 5.498 MB / 495.8 MB, free: 1.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.3218, allocations: 72.7 kB / 495.9 MB, free: 1.688 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002713/0.3245, allocations: 2.082 MB / 498 MB, free: 15.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.145e-05/0.3246, allocations: 45.7 kB / 498 MB, free: 15.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.3257, allocations: 1.653 MB / 499.7 MB, free: 13.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003333/0.326, allocations: 473.2 kB / 0.4884 GB, free: 13.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.122e-05/0.3261, allocations: 40 kB / 0.4884 GB, free: 13.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3263, allocations: 373.9 kB / 0.4888 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.3273, allocations: 0.7184 MB / 0.4895 GB, free: 12.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.3288, allocations: 1.348 MB / 0.4908 GB, free: 10.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002618/0.3314, allocations: 2.218 MB / 0.493 GB, free: 8.113 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.3314, allocations: 8 kB / 0.493 GB, free: 8.105 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003744/0.3352, allocations: 2.51 MB / 0.4954 GB, free: 5.559 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.3352, allocations: 16 kB / 0.4955 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.3352, allocations: 24.03 kB / 0.4955 GB, free: 5.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003632/0.3356, allocations: 142.4 kB / 0.4956 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/0.3372, allocations: 463.2 kB / 0.4961 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.3395, allocations: 3.083 MB / 0.4991 GB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.3409, allocations: 111.9 kB / 0.4992 GB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.3411, allocations: 84 kB / 0.4993 GB, free: 1.379 MB / 378.7 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.001618/0.3427, allocations: 1.051 MB / 0.5003 GB, free: 324 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003045/0.343, allocations: 221.3 kB / 0.5005 GB, free: 100 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.151/0.494, allocations: 2.173 MB / 0.5026 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.4941, allocations: 12.69 kB / 0.5026 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.4941, allocations: 4.641 kB / 0.5026 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.4941, allocations: 6.188 kB / 0.5026 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006743/0.5008, allocations: 5.184 MB / 0.5077 GB, free: 90 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.5009, allocations: 3.969 kB / 0.5077 GB, free: 90 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009069/0.5018, allocations: 230.1 kB / 0.5079 GB, free: 89.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005858/0.5024, allocations: 275.1 kB / 0.5082 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.629e-05/0.5025, allocations: 39.75 kB / 0.5082 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004581/0.5071, allocations: 7.126 MB / 0.5152 GB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.5071, allocations: 3.719 kB / 0.5152 GB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003891/0.511, allocations: 3.177 MB / 0.5183 GB, free: 82.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007142/0.5117, allocations: 467.8 kB / 0.5187 GB, free: 81.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000236/0.512, allocations: 35.28 kB / 0.5188 GB, free: 81.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008642/0.5129, allocations: 68.59 kB / 0.5188 GB, free: 81.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.513, allocations: 93.27 kB / 0.5189 GB, free: 81.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.885e-05/0.5131, allocations: 35 kB / 0.519 GB, free: 81.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00163/0.5148, allocations: 1.417 MB / 0.5203 GB, free: 81.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5148, allocations: 0 / 0.5203 GB, free: 81.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001521/0.5163, allocations: 0.5689 MB / 0.5209 GB, free: 81.19 MB / 378.7 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.0002572/0.5166, allocations: 168.4 kB / 0.5211 GB, free: 81.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002328/0.5189, allocations: 2.099 MB / 0.5231 GB, free: 79.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.5189, allocations: 0 / 0.5231 GB, free: 79.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.5204, allocations: 1.388 MB / 0.5245 GB, free: 78.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002592/0.523, allocations: 0.5194 MB / 0.525 GB, free: 77.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007596/0.5306, allocations: 7.714 MB / 0.5325 GB, free: 70 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001391/0.532, allocations: 2.412 MB / 0.5349 GB, free: 67.56 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001423/0.5334, allocations: 0.4985 MB / 0.5353 GB, free: 67.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004353/0.5339, allocations: 151.4 kB / 0.5355 GB, free: 66.91 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5339, allocations: 5.969 kB / 0.5355 GB, free: 66.91 MB / 378.7 MB Notification: Performance of Templates: time 0.03848/0.5724, allocations: 27.15 MB / 0.562 GB, free: 40.08 MB / 378.7 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","../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