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.001447/0.001447, allocations: 88.62 kB / 20.95 MB, free: 3.473 MB / 18.57 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.001483/0.001483, allocations: 145.5 kB / 24.25 MB, free: 180 kB / 18.57 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.461/1.461, allocations: 173.4 MB / 200.8 MB, free: 9.289 MB / 186.7 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 1.503e-06/1.503e-06, allocations: 0 / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.777e-05/2.928e-05, allocations: 2.312 kB / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.02002/0.02005, allocations: 13.9 MB / 281.2 MB, free: 8.719 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.03138, allocations: 5.123 MB / 286.4 MB, free: 3.578 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003055/0.03444, allocations: 127.2 kB / 286.5 MB, free: 3.453 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004496/0.03893, allocations: 1.114 MB / 287.6 MB, free: 2.332 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005768/0.0447, allocations: 1.432 MB / 289 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1096/0.1543, allocations: 0.9293 MB / 290 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005012/0.1593, allocations: 4.116 MB / 294.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002727/0.162, allocations: 2.03 MB / 296.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004413/0.1665, allocations: 2.844 MB / 299 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003216/0.1697, allocations: 1.92 MB / 300.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008033/0.1705, allocations: 0.5146 MB / 301.4 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001455/0.1719, allocations: 0.7278 MB / 302.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008549/0.1728, allocations: 1.331 MB / 303.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001567/0.1744, allocations: 1.508 MB / 305 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005378/0.1797, allocations: 6.978 MB / 311.9 MB, free: 8.414 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1797, allocations: 3.938 kB / 311.9 MB, free: 8.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1797, allocations: 0 / 311.9 MB, free: 8.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.569e-05/0.1798, allocations: 0 / 311.9 MB, free: 8.41 MB / 266.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.008791/0.1886, allocations: 4.652 MB / 316.6 MB, free: 4.617 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1887, allocations: 8.031 kB / 316.6 MB, free: 4.609 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003073/0.1917, allocations: 1.059 MB / 317.7 MB, free: 3.551 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003821/0.1956, allocations: 2.554 MB / 320.2 MB, free: 1.074 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.1957, allocations: 255.3 kB / 320.5 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004293/0.1961, allocations: 354.3 kB / 320.8 MB, free: 492 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008813/0.2049, allocations: 4.542 MB / 325.3 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.574e-05/0.205, allocations: 7.422 kB / 325.4 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000379/0.2054, allocations: 139.9 kB / 325.5 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002075/0.2056, allocations: 162.8 kB / 325.6 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007818/0.2134, allocations: 3.739 MB / 329.4 MB, free: 7.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0249/0.2383, allocations: 12.55 MB / 341.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00486/0.2432, allocations: 2.139 MB / 344.1 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002319/0.2455, allocations: 1.153 MB / 345.2 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007821/0.2533, allocations: 3.2 MB / 348.4 MB, free: 4.879 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/0.2534, allocations: 47.86 kB / 348.5 MB, free: 4.824 MB / 298.7 MB Notification: Performance of pre-optimization done (n=128): time 3.997e-06/0.2534, allocations: 0 / 348.5 MB, free: 4.824 MB / 298.7 MB Notification: Performance of matching and sorting (n=132): time 0.01155/0.2649, allocations: 5.039 MB / 353.5 MB, free: 15.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.265, allocations: 68.66 kB / 353.6 MB, free: 15.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003774/0.2688, allocations: 1.953 MB / 355.5 MB, free: 13.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001758/0.269, allocations: 53.7 kB / 355.6 MB, free: 13.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001664/0.2706, allocations: 1.711 MB / 357.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005938/0.2712, allocations: 484.5 kB / 357.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006201/0.2718, allocations: 335.4 kB / 358.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.272, allocations: 301.1 kB / 358.4 MB, free: 10.81 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.2734, allocations: 0.7211 MB / 359.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/0.2756, allocations: 1.372 MB / 360.5 MB, free: 8.434 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003925/0.2795, allocations: 2.237 MB / 362.7 MB, free: 6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/0.2795, allocations: 4 kB / 362.7 MB, free: 5.996 MB / 314.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005025/0.2845, allocations: 2.519 MB / 365.2 MB, free: 3.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.2846, allocations: 18.62 kB / 365.3 MB, free: 3.574 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.648e-05/0.2846, allocations: 20 kB / 365.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004952/0.2851, allocations: 146.9 kB / 365.4 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001818/0.2869, allocations: 461.1 kB / 365.9 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003546/0.2905, allocations: 3.09 MB / 369 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/0.2922, allocations: 107.9 kB / 369.1 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/0.2923, allocations: 84 kB / 369.1 MB, free: 15.53 MB / 330.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.00203/0.2944, allocations: 1.056 MB / 370.2 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005725/0.2949, allocations: 250.6 kB / 370.4 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00419/0.2991, allocations: 2.019 MB / 372.5 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/0.2991, allocations: 12 kB / 372.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.2991, allocations: 4 kB / 372.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.2992, allocations: 11.48 kB / 372.5 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008975/0.3081, allocations: 4.252 MB / 376.7 MB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.128e-06/0.3081, allocations: 8.25 kB / 376.8 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.3093, allocations: 234 kB / 377 MB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.3103, allocations: 299 kB / 377.3 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.3104, allocations: 27.98 kB / 377.3 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008848/0.3193, allocations: 7.285 MB / 384.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.3193, allocations: 7.984 kB / 384.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006027/0.3253, allocations: 3.052 MB / 387.6 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001361/0.3267, allocations: 374.5 kB / 388 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003069/0.327, allocations: 31.98 kB / 388 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.328, allocations: 67.92 kB / 388.1 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002824/0.3283, allocations: 101 kB / 388.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.256e-05/0.3283, allocations: 32 kB / 388.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002519/0.3309, allocations: 1.302 MB / 389.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3309, allocations: 0 / 389.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002539/0.3334, allocations: 0.5624 MB / 390.1 MB, free: 10.16 MB / 346.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.000459/0.3339, allocations: 169 kB / 390.3 MB, free: 9.996 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003932/0.3378, allocations: 1.961 MB / 392.2 MB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3378, allocations: 0 / 392.2 MB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.3402, allocations: 1.326 MB / 393.6 MB, free: 6.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002677/0.3428, allocations: 0.5258 MB / 394.1 MB, free: 6.223 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/0.355, allocations: 6.142 MB / 400.2 MB, free: 12 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002639/0.3577, allocations: 1.865 MB / 402.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001656/0.3593, allocations: 481.2 kB / 402.6 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004723/0.3598, allocations: 148.5 kB / 402.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.3598, allocations: 0 / 402.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of Templates: time 0.05618/0.416, allocations: 27.32 MB / 430 MB, free: 2.633 MB / 378.7 MB " [Timeout remaining time 660] 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.717814889998408]