Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000944/0.000944, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001594/0.001594, allocations: 165.2 kB / 24.99 MB, free: 8.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9069/0.9069, allocations: 177 MB / 205.2 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 273 MB, free: 1.652 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.481e-05/1.613e-05, allocations: 5.266 kB / 273 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1333/0.1334, allocations: 40.83 MB / 313.9 MB, free: 6.535 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01916/0.1525, allocations: 11.14 MB / 325 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003721/0.1562, allocations: 381.5 kB / 325.4 MB, free: 14.29 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009577/0.1658, allocations: 9.34 MB / 334.7 MB, free: 4.918 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006181/0.172, allocations: 3.771 MB / 338.5 MB, free: 1.125 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003608/0.1756, allocations: 2.457 MB / 341 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01101/0.1866, allocations: 14 MB / 355 MB, free: 0.625 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01782/0.2044, allocations: 17.46 MB / 372.4 MB, free: 15 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009575/0.214, allocations: 10.67 MB / 383.1 MB, free: 4.309 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006859/0.2209, allocations: 7.563 MB / 390.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002426/0.2233, allocations: 1.988 MB / 392.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003109/0.2264, allocations: 2.409 MB / 395.1 MB, free: 8.332 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002841/0.2292, allocations: 4.188 MB / 399.2 MB, free: 4.133 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006416/0.2357, allocations: 5.286 MB / 404.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01448/0.2501, allocations: 12.9 MB / 417.4 MB, free: 1.898 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2501, allocations: 0 / 417.4 MB, free: 1.898 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2501, allocations: 3.938 kB / 417.4 MB, free: 1.895 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002461/0.2504, allocations: 0 / 417.4 MB, free: 1.895 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.02805/0.2784, allocations: 16.58 MB / 434 MB, free: 1.188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2785, allocations: 11.98 kB / 434 MB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2147/0.4932, allocations: 7.998 MB / 442 MB, free: 119.3 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.5034, allocations: 7.917 MB / 449.9 MB, free: 116.5 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004486/0.5039, allocations: 0.9354 MB / 450.9 MB, free: 116 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001448/0.5053, allocations: 1.229 MB / 452.1 MB, free: 115.6 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01493/0.5203, allocations: 10.56 MB / 462.7 MB, free: 107.8 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001842/0.5204, allocations: 27.83 kB / 462.7 MB, free: 107.8 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007656/0.5212, allocations: 0.5032 MB / 463.2 MB, free: 107.3 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003093/0.5215, allocations: 0.6543 MB / 463.8 MB, free: 106.6 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01012/0.5316, allocations: 5.567 MB / 469.4 MB, free: 101 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0405/0.5721, allocations: 49.18 MB / 0.5064 GB, free: 51.38 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008342/0.5805, allocations: 9.016 MB / 0.5152 GB, free: 44 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002073/0.5825, allocations: 1.728 MB / 0.5169 GB, free: 42.27 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007215/0.5898, allocations: 5.859 MB / 0.5226 GB, free: 36.59 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.5898, allocations: 72.23 kB / 0.5227 GB, free: 36.51 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 5.2e-06/0.5898, allocations: 4 kB / 0.5227 GB, free: 36.51 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01746/0.6073, allocations: 10.98 MB / 0.5334 GB, free: 25.55 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.6073, allocations: 94.58 kB / 0.5335 GB, free: 25.45 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004505/0.6118, allocations: 4.632 MB / 0.5381 GB, free: 20.81 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001804/0.612, allocations: 89.7 kB / 0.5381 GB, free: 20.72 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001969/0.614, allocations: 6.081 MB / 0.5441 GB, free: 14.62 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007222/0.6147, allocations: 1.498 MB / 0.5455 GB, free: 13.14 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/0.6159, allocations: 1.496 MB / 0.547 GB, free: 11.64 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.447e-05/0.616, allocations: 480.7 kB / 0.5475 GB, free: 11.16 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001643/0.6176, allocations: 0.9895 MB / 0.5484 GB, free: 10.17 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002666/0.6203, allocations: 5.563 MB / 0.5539 GB, free: 2.629 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006098/0.6264, allocations: 7.23 MB / 0.5609 GB, free: 9.402 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.016e-05/0.6264, allocations: 32 kB / 0.561 GB, free: 9.371 MB / 394.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.009451/0.6359, allocations: 6.321 MB / 0.5671 GB, free: 2.984 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.719e-05/0.6359, allocations: 52.61 kB / 0.5672 GB, free: 2.934 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.461e-05/0.636, allocations: 104 kB / 0.5673 GB, free: 2.832 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001864/0.6379, allocations: 0.8875 MB / 0.5681 GB, free: 1.922 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/0.641, allocations: 1.63 MB / 0.5697 GB, free: 296 kB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1294/0.7704, allocations: 8.464 MB / 0.578 GB, free: 96.58 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004381/0.7748, allocations: 413.9 kB / 0.5784 GB, free: 96.58 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005969/0.7754, allocations: 367.2 kB / 0.5787 GB, free: 96.58 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.002851/0.7782, allocations: 0.6375 MB / 0.5794 GB, free: 96.42 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008803/0.7791, allocations: 0.6561 MB / 0.58 GB, free: 96.42 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005861/0.785, allocations: 3.802 MB / 0.5837 GB, free: 96.13 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.785, allocations: 45.59 kB / 0.5838 GB, free: 96.12 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.173e-05/0.785, allocations: 8.219 kB / 0.5838 GB, free: 96.12 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.091e-05/0.7851, allocations: 20.3 kB / 0.5838 GB, free: 96.12 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01434/0.7994, allocations: 11.87 MB / 0.5954 GB, free: 95.19 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.7994, allocations: 3.594 kB / 0.5954 GB, free: 95.19 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/0.8011, allocations: 0.7754 MB / 0.5961 GB, free: 95.15 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.8027, allocations: 0.7452 MB / 0.5969 GB, free: 95.08 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/0.8029, allocations: 93.47 kB / 0.597 GB, free: 95.08 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004873/0.8078, allocations: 8.002 MB / 0.6048 GB, free: 89.5 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.8078, allocations: 7.938 kB / 0.6048 GB, free: 89.5 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006464/0.8142, allocations: 4.778 MB / 0.6094 GB, free: 88 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.8155, allocations: 0.9557 MB / 0.6104 GB, free: 87.72 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004138/0.8159, allocations: 78.58 kB / 0.6105 GB, free: 87.66 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.817, allocations: 219.9 kB / 0.6107 GB, free: 87.61 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000366/0.8174, allocations: 301.5 kB / 0.611 GB, free: 87.56 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/0.8176, allocations: 120.9 kB / 0.6111 GB, free: 87.54 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.002254/0.8198, allocations: 2.179 MB / 0.6132 GB, free: 86.85 MB / 394.8 MB Notification: Performance of sort global known variables: time 8.1e-08/0.8198, allocations: 0 / 0.6132 GB, free: 86.85 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.00423/0.824, allocations: 1.938 MB / 0.6151 GB, free: 86.67 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.0004931/0.8245, allocations: 274.6 kB / 0.6153 GB, free: 86.48 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.005374/0.8299, allocations: 4.765 MB / 0.62 GB, free: 83.39 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8299, allocations: 0 / 0.62 GB, free: 83.39 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002264/0.8322, allocations: 2.347 MB / 0.6223 GB, free: 81.27 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003024/0.8352, allocations: 1.317 MB / 0.6236 GB, free: 80.23 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01847/0.8537, allocations: 17.64 MB / 0.6408 GB, free: 63.88 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/0.8555, allocations: 3.103 MB / 0.6438 GB, free: 60.85 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.002907/0.8585, allocations: 1.855 MB / 0.6457 GB, free: 58.99 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007424/0.8592, allocations: 424.4 kB / 0.6461 GB, free: 58.57 MB / 394.8 MB Notification: Performance of SimCode: time 1.163e-06/0.8592, allocations: 0 / 0.6461 GB, free: 58.57 MB / 394.8 MB Notification: Performance of Templates: time 0.09307/0.9523, allocations: 68.84 MB / 0.7133 GB, free: 6.508 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.519652349175885]