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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 104.7 kB / 20.48 MB, free: 1.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 193.7 kB / 23.76 MB, free: 4.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 225.7 MB / 252.6 MB, free: 12.78 MB / 206.1 MB " [Timeout remaining time 178] 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=20000,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=20000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 55.92 kB / 371 MB, free: 9.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2604, allocations: 52.18 MB / 423.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.0186/0.279, allocations: 13.87 MB / 437.1 MB, free: 472 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01116/0.2901, allocations: 5.088 MB / 442.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002626/0.2927, allocations: 131.2 kB / 442.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003177/0.2959, allocations: 1.114 MB / 443.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004328/0.3003, allocations: 1.401 MB / 444.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002258/0.3025, allocations: 0.9353 MB / 445.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005175/0.3077, allocations: 3.963 MB / 449.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003304/0.311, allocations: 2.014 MB / 451.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.314, allocations: 1.943 MB / 453.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003552/0.3175, allocations: 2.16 MB / 455.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008205/0.3183, allocations: 0.5195 MB / 456.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.3199, allocations: 0.7263 MB / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001294/0.3212, allocations: 1.309 MB / 458.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002157/0.3233, allocations: 1.777 MB / 460.1 MB, free: 9.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007703/0.331, allocations: 6.96 MB / 467.1 MB, free: 2.254 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.331, allocations: 0 / 467.1 MB, free: 2.254 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.331, allocations: 4 kB / 467.1 MB, free: 2.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.506e-05/0.3311, allocations: 0 / 467.1 MB, free: 2.25 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.0102/0.3413, allocations: 4.686 MB / 471.8 MB, free: 13.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3414, allocations: 8.922 kB / 471.8 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00294/0.3443, allocations: 0.6932 MB / 472.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004374/0.3487, allocations: 2.443 MB / 474.9 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.3489, allocations: 259.3 kB / 475.2 MB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005128/0.3494, allocations: 348.1 kB / 475.5 MB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007979/0.3574, allocations: 4.547 MB / 480.1 MB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.643e-05/0.3575, allocations: 4 kB / 480.1 MB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003243/0.3578, allocations: 140 kB / 480.2 MB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/0.358, allocations: 162.7 kB / 480.4 MB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006843/0.3648, allocations: 3.743 MB / 484.1 MB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02532/0.3901, allocations: 12.29 MB / 496.4 MB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004728/0.3949, allocations: 2.132 MB / 498.5 MB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002215/0.3971, allocations: 1.153 MB / 499.7 MB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007338/0.4044, allocations: 3.181 MB / 0.4911 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.4045, allocations: 47.88 kB / 0.4911 GB, free: 13.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.487e-06/0.4045, allocations: 0 / 0.4911 GB, free: 13.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.011/0.4155, allocations: 4.997 MB / 0.496 GB, free: 8.859 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.4155, allocations: 68.66 kB / 0.4961 GB, free: 8.781 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003781/0.4193, allocations: 1.953 MB / 0.498 GB, free: 6.785 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.4195, allocations: 53.7 kB / 0.498 GB, free: 6.727 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001569/0.421, allocations: 1.712 MB / 0.4997 GB, free: 4.996 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005216/0.4216, allocations: 487.9 kB / 0.5002 GB, free: 4.516 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006124/0.4222, allocations: 335.4 kB / 0.5005 GB, free: 4.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.4223, allocations: 301.1 kB / 0.5008 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.4237, allocations: 0.7222 MB / 0.5015 GB, free: 3.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001952/0.4256, allocations: 1.377 MB / 0.5028 GB, free: 1.492 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003438/0.4291, allocations: 2.23 MB / 0.505 GB, free: 14.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-05/0.4291, allocations: 4 kB / 0.505 GB, free: 14.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004625/0.4337, allocations: 2.439 MB / 0.5074 GB, free: 12.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.4338, allocations: 16 kB / 0.5074 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.472e-05/0.4338, allocations: 20.5 kB / 0.5074 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004303/0.4342, allocations: 142.5 kB / 0.5076 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/0.436, allocations: 463.2 kB / 0.508 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003126/0.4391, allocations: 3.092 MB / 0.511 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.4407, allocations: 116 kB / 0.5111 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/0.4409, allocations: 87.98 kB / 0.5112 GB, free: 8.387 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.002041/0.4429, allocations: 1.044 MB / 0.5122 GB, free: 7.332 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007111/0.4437, allocations: 206.6 kB / 0.5124 GB, free: 7.129 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.4481, allocations: 2.013 MB / 0.5144 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.4481, allocations: 16 kB / 0.5144 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.4481, allocations: 4 kB / 0.5144 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.4481, allocations: 15.95 kB / 0.5144 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008951/0.4571, allocations: 4.246 MB / 0.5186 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.4571, allocations: 0 / 0.5186 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.4582, allocations: 227.7 kB / 0.5188 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007844/0.4589, allocations: 275.2 kB / 0.5191 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.4591, allocations: 31.98 kB / 0.5191 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00791/0.467, allocations: 7.258 MB / 0.5262 GB, free: 8.535 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.467, allocations: 7.969 kB / 0.5262 GB, free: 8.527 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005469/0.4724, allocations: 3.014 MB / 0.5291 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.4736, allocations: 370.5 kB / 0.5295 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004592/0.474, allocations: 32.25 kB / 0.5295 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.4752, allocations: 71.92 kB / 0.5296 GB, free: 4.988 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.4754, allocations: 97.06 kB / 0.5297 GB, free: 4.895 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.17e-05/0.4755, allocations: 44.36 kB / 0.5297 GB, free: 4.852 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002592/0.4781, allocations: 1.294 MB / 0.531 GB, free: 3.535 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4781, allocations: 4 kB / 0.531 GB, free: 3.531 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00227/0.4804, allocations: 0.5547 MB / 0.5315 GB, free: 2.977 MB / 446.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.0003637/0.4807, allocations: 173.3 kB / 0.5317 GB, free: 2.801 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003621/0.4844, allocations: 1.965 MB / 0.5336 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4844, allocations: 0 / 0.5336 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1911/0.6755, allocations: 1.316 MB / 0.5349 GB, free: 108.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002831/0.6783, allocations: 491.5 kB / 0.5354 GB, free: 108.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009679/0.688, allocations: 6.16 MB / 0.5414 GB, free: 105.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001731/0.6898, allocations: 1.872 MB / 0.5432 GB, free: 105.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001391/0.6911, allocations: 484.7 kB / 0.5437 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003823/0.6915, allocations: 149.5 kB / 0.5438 GB, free: 105.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6915, allocations: 0 / 0.5438 GB, free: 105.2 MB / 446.1 MB Notification: Performance of Templates: time 0.04116/0.7327, allocations: 27.45 MB / 0.5706 GB, free: 80.62 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.942653890699148]