Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009827/0.0009827, allocations: 166.4 kB / 24.99 MB, free: 8.746 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8889/0.8889, allocations: 177.1 MB / 205.3 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 273.1 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.536e-05/1.698e-05, allocations: 5.125 kB / 273.1 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1346/0.1346, allocations: 40.82 MB / 313.9 MB, free: 7.203 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01722/0.1518, allocations: 11.13 MB / 325.1 MB, free: 14.8 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005688/0.1575, allocations: 379.5 kB / 325.4 MB, free: 14.64 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.1676, allocations: 9.336 MB / 334.8 MB, free: 5.266 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007267/0.1748, allocations: 3.773 MB / 338.6 MB, free: 1.473 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003531/0.1783, allocations: 2.461 MB / 341 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.1891, allocations: 13.99 MB / 355 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01876/0.2079, allocations: 17.46 MB / 372.5 MB, free: 15.35 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01029/0.2182, allocations: 10.68 MB / 383.1 MB, free: 4.652 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006367/0.2245, allocations: 7.559 MB / 390.7 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001855/0.2264, allocations: 1.988 MB / 392.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002512/0.2289, allocations: 2.401 MB / 395.1 MB, free: 8.688 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002229/0.2311, allocations: 4.192 MB / 399.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00445/0.2356, allocations: 5.287 MB / 404.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.2475, allocations: 12.9 MB / 417.5 MB, free: 2.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2475, allocations: 4 kB / 417.5 MB, free: 2.246 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2475, allocations: 0 / 417.5 MB, free: 2.246 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001553/0.2477, allocations: 0 / 417.5 MB, free: 2.246 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.01967/0.2673, allocations: 16.58 MB / 434.1 MB, free: 1.539 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.2674, allocations: 12.03 kB / 434.1 MB, free: 1.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2089/0.4763, allocations: 7.986 MB / 442 MB, free: 119.3 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01188/0.4882, allocations: 7.919 MB / 450 MB, free: 116.6 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004895/0.4887, allocations: 0.9277 MB / 450.9 MB, free: 116.2 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/0.4905, allocations: 1.22 MB / 452.1 MB, free: 115.8 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01467/0.5051, allocations: 10.57 MB / 462.7 MB, free: 108.2 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001911/0.5053, allocations: 27.84 kB / 462.7 MB, free: 108.2 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007687/0.5061, allocations: 0.4998 MB / 463.2 MB, free: 107.7 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000309/0.5064, allocations: 0.6582 MB / 463.9 MB, free: 107 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00966/0.5161, allocations: 5.567 MB / 469.4 MB, free: 101.4 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03723/0.5533, allocations: 49.18 MB / 0.5065 GB, free: 51.77 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008069/0.5614, allocations: 9.009 MB / 0.5153 GB, free: 44.4 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001932/0.5633, allocations: 1.732 MB / 0.517 GB, free: 42.65 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00667/0.57, allocations: 5.852 MB / 0.5227 GB, free: 36.99 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.57, allocations: 80.23 kB / 0.5227 GB, free: 36.9 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.659e-06/0.57, allocations: 0 / 0.5227 GB, free: 36.9 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01624/0.5862, allocations: 10.98 MB / 0.5335 GB, free: 26.01 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.5863, allocations: 94.58 kB / 0.5336 GB, free: 25.91 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003915/0.5902, allocations: 4.639 MB / 0.5381 GB, free: 21.26 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001834/0.5904, allocations: 89.7 kB / 0.5382 GB, free: 21.17 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001753/0.5921, allocations: 6.077 MB / 0.5441 GB, free: 15.07 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006065/0.5927, allocations: 1.488 MB / 0.5456 GB, free: 13.6 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/0.594, allocations: 1.507 MB / 0.547 GB, free: 12.08 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.991e-05/0.594, allocations: 476.8 kB / 0.5475 GB, free: 11.61 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.5955, allocations: 0.9895 MB / 0.5485 GB, free: 10.62 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002458/0.5979, allocations: 5.57 MB / 0.5539 GB, free: 3.07 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005631/0.6036, allocations: 7.226 MB / 0.561 GB, free: 9.848 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.679e-05/0.6036, allocations: 28 kB / 0.561 GB, free: 9.82 MB / 394.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.00872/0.6123, allocations: 6.32 MB / 0.5672 GB, free: 3.434 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/0.6124, allocations: 54.19 kB / 0.5672 GB, free: 3.383 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.684e-05/0.6125, allocations: 104 kB / 0.5673 GB, free: 3.281 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/0.6142, allocations: 0.8904 MB / 0.5682 GB, free: 2.371 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002988/0.6172, allocations: 1.634 MB / 0.5698 GB, free: 0.7344 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1178/0.735, allocations: 8.446 MB / 0.578 GB, free: 96.87 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003914/0.7389, allocations: 415.3 kB / 0.5784 GB, free: 96.87 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006726/0.7396, allocations: 369.6 kB / 0.5788 GB, free: 96.87 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002588/0.7422, allocations: 0.6363 MB / 0.5794 GB, free: 96.71 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/0.7432, allocations: 0.658 MB / 0.58 GB, free: 96.71 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006165/0.7494, allocations: 3.803 MB / 0.5837 GB, free: 96.43 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.572e-05/0.7494, allocations: 45.56 kB / 0.5838 GB, free: 96.42 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/0.7494, allocations: 7.719 kB / 0.5838 GB, free: 96.42 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.594e-05/0.7495, allocations: 23.16 kB / 0.5838 GB, free: 96.42 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.7641, allocations: 11.87 MB / 0.5954 GB, free: 95.48 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.7642, allocations: 3.844 kB / 0.5954 GB, free: 95.48 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/0.7659, allocations: 0.7758 MB / 0.5962 GB, free: 95.44 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001533/0.7675, allocations: 0.7341 MB / 0.5969 GB, free: 95.37 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002162/0.7677, allocations: 99.16 kB / 0.597 GB, free: 95.37 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004822/0.7725, allocations: 8.002 MB / 0.6048 GB, free: 89.72 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.7725, allocations: 3.719 kB / 0.6048 GB, free: 89.72 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006533/0.779, allocations: 4.787 MB / 0.6095 GB, free: 88.21 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/0.7806, allocations: 0.9548 MB / 0.6104 GB, free: 87.93 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004655/0.781, allocations: 77.81 kB / 0.6105 GB, free: 87.88 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.7822, allocations: 221.6 kB / 0.6107 GB, free: 87.83 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003886/0.7826, allocations: 298.5 kB / 0.611 GB, free: 87.78 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/0.7828, allocations: 120.8 kB / 0.6111 GB, free: 87.75 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.002481/0.7853, allocations: 2.171 MB / 0.6132 GB, free: 87.07 MB / 394.8 MB Notification: Performance of sort global known variables: time 9e-08/0.7853, allocations: 3.719 kB / 0.6132 GB, free: 87.07 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.004484/0.7898, allocations: 1.938 MB / 0.6151 GB, free: 86.89 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004708/0.7902, allocations: 270.2 kB / 0.6154 GB, free: 86.71 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.00625/0.7965, allocations: 4.774 MB / 0.62 GB, free: 83.7 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.7965, allocations: 0 / 0.62 GB, free: 83.7 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003237/0.7997, allocations: 2.34 MB / 0.6223 GB, free: 81.58 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003837/0.8036, allocations: 1.315 MB / 0.6236 GB, free: 80.55 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02148/0.825, allocations: 17.64 MB / 0.6408 GB, free: 64.2 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00232/0.8274, allocations: 3.103 MB / 0.6439 GB, free: 61.14 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.00363/0.831, allocations: 1.844 MB / 0.6457 GB, free: 59.29 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008288/0.8318, allocations: 424.4 kB / 0.6461 GB, free: 58.88 MB / 394.8 MB Notification: Performance of SimCode: time 1.854e-06/0.8318, allocations: 4 kB / 0.6461 GB, free: 58.87 MB / 394.8 MB Notification: Performance of Templates: time 0.08003/0.9119, allocations: 68.85 MB / 0.7133 GB, free: 6.977 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",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.520693137077615]