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.001285/0.001285, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001394/0.001394, allocations: 164.2 kB / 24.91 MB, free: 8.762 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.8705/0.8705, allocations: 177 MB / 205.2 MB, free: 5.039 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 9.02e-07/9.02e-07, allocations: 0 / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.377e-06/1.028e-05, allocations: 2.312 kB / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1194/0.1194, allocations: 39.24 MB / 312.7 MB, free: 7.367 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.1373, allocations: 11.71 MB / 324.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005174/0.1425, allocations: 382.4 kB / 324.8 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009496/0.152, allocations: 9.347 MB / 334.1 MB, free: 5.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007026/0.159, allocations: 3.774 MB / 337.9 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003459/0.1625, allocations: 2.463 MB / 340.3 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0106/0.173, allocations: 14.01 MB / 354.4 MB, free: 1.027 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01669/0.1897, allocations: 17.88 MB / 372.2 MB, free: 14.93 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009148/0.1989, allocations: 10.95 MB / 383.2 MB, free: 3.965 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005832/0.2047, allocations: 7.669 MB / 390.9 MB, free: 12.28 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001527/0.2062, allocations: 1.984 MB / 392.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002429/0.2087, allocations: 2.382 MB / 395.2 MB, free: 7.914 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.2108, allocations: 4.149 MB / 399.4 MB, free: 3.754 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00398/0.2148, allocations: 5.259 MB / 404.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009524/0.2243, allocations: 12.84 MB / 417.5 MB, free: 1.605 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2243, allocations: 0 / 417.5 MB, free: 1.605 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2243, allocations: 3.938 kB / 417.5 MB, free: 1.602 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002269/0.2245, allocations: 0 / 417.5 MB, free: 1.602 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.01781/0.2423, allocations: 15.01 MB / 432.5 MB, free: 2.473 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.2424, allocations: 11.98 kB / 432.5 MB, free: 2.461 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2262/0.4686, allocations: 6.451 MB / 439 MB, free: 76.48 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007175/0.4758, allocations: 4.543 MB / 443.5 MB, free: 76.11 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000394/0.4762, allocations: 0.9304 MB / 444.4 MB, free: 76.09 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00116/0.4773, allocations: 1.228 MB / 445.7 MB, free: 76.07 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009409/0.4867, allocations: 9.899 MB / 455.6 MB, free: 75.12 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001781/0.4869, allocations: 21.77 kB / 455.6 MB, free: 75.11 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007771/0.4877, allocations: 0.4984 MB / 456.1 MB, free: 75.11 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003582/0.4881, allocations: 0.6581 MB / 456.7 MB, free: 75.08 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005702/0.4938, allocations: 4.78 MB / 461.5 MB, free: 73.53 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02784/0.5216, allocations: 37.85 MB / 499.4 MB, free: 39.55 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0055/0.5271, allocations: 6.234 MB / 0.4938 GB, free: 33.5 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.5282, allocations: 1.314 MB / 0.495 GB, free: 32.22 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005275/0.5335, allocations: 4.321 MB / 0.4993 GB, free: 28.21 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.5335, allocations: 73.34 kB / 0.4993 GB, free: 28.12 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.609e-06/0.5336, allocations: 2.812 kB / 0.4993 GB, free: 28.12 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01128/0.5448, allocations: 8.394 MB / 0.5075 GB, free: 20.22 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.5449, allocations: 90.58 kB / 0.5076 GB, free: 20.12 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/0.5467, allocations: 3.507 MB / 0.511 GB, free: 17.32 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.5468, allocations: 93.7 kB / 0.5111 GB, free: 17.22 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.5479, allocations: 5.244 MB / 0.5162 GB, free: 12.16 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004597/0.5483, allocations: 1.462 MB / 0.5177 GB, free: 10.78 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009671/0.5493, allocations: 1.268 MB / 0.5189 GB, free: 9.641 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.048e-05/0.5493, allocations: 305.1 kB / 0.5192 GB, free: 9.34 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009064/0.5502, allocations: 0.8812 MB / 0.5201 GB, free: 8.457 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.5516, allocations: 3.787 MB / 0.5238 GB, free: 3.453 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003344/0.5549, allocations: 5.331 MB / 0.529 GB, free: 13.25 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.78e-05/0.555, allocations: 32 kB / 0.529 GB, free: 13.22 MB / 394.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.004763/0.5597, allocations: 4.651 MB / 0.5335 GB, free: 9.211 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.5598, allocations: 48.81 kB / 0.5336 GB, free: 9.164 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.895e-05/0.5598, allocations: 104 kB / 0.5337 GB, free: 9.062 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.5612, allocations: 0.8064 MB / 0.5345 GB, free: 8.25 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/0.5638, allocations: 1.482 MB / 0.5359 GB, free: 6.887 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004485/0.5683, allocations: 6.014 MB / 0.5418 GB, free: 0.7656 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/0.57, allocations: 295.8 kB / 0.5421 GB, free: 488 kB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002981/0.5703, allocations: 300 kB / 0.5424 GB, free: 188 kB / 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.001581/0.5719, allocations: 0.6025 MB / 0.543 GB, free: 15.7 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005892/0.5725, allocations: 439.5 kB / 0.5434 GB, free: 15.27 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003581/0.5761, allocations: 2.792 MB / 0.5461 GB, free: 12.48 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/0.5761, allocations: 40 kB / 0.5461 GB, free: 12.44 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.5761, allocations: 8 kB / 0.5461 GB, free: 12.43 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/0.5761, allocations: 19.92 kB / 0.5462 GB, free: 12.41 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008619/0.5848, allocations: 7.068 MB / 0.5531 GB, free: 6.039 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.5848, allocations: 4 kB / 0.5531 GB, free: 6.035 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/0.5866, allocations: 0.653 MB / 0.5537 GB, free: 5.422 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001612/0.5882, allocations: 0.6674 MB / 0.5544 GB, free: 4.75 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001992/0.5884, allocations: 87.97 kB / 0.5544 GB, free: 4.664 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005129/0.5935, allocations: 5.621 MB / 0.5599 GB, free: 14.9 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.5935, allocations: 7.469 kB / 0.5599 GB, free: 14.89 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005095/0.5986, allocations: 3.433 MB / 0.5633 GB, free: 11.44 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.5998, allocations: 0.5901 MB / 0.5639 GB, free: 10.85 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004855/0.6002, allocations: 79.98 kB / 0.5639 GB, free: 10.77 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.6015, allocations: 112 kB / 0.564 GB, free: 10.66 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004091/0.6019, allocations: 281.6 kB / 0.5643 GB, free: 10.39 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002048/0.6021, allocations: 91.95 kB / 0.5644 GB, free: 10.3 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.001628/0.6037, allocations: 1.629 MB / 0.566 GB, free: 8.879 MB / 426.8 MB Notification: Performance of sort global known variables: time 8e-08/0.6037, allocations: 0 / 0.566 GB, free: 8.879 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004844/0.6086, allocations: 1.93 MB / 0.5679 GB, free: 6.949 MB / 426.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.0004376/0.609, allocations: 256 kB / 0.5681 GB, free: 6.734 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.004614/0.6136, allocations: 3.725 MB / 0.5718 GB, free: 3.352 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 0.000151/0.6138, allocations: 79.94 kB / 0.5718 GB, free: 3.266 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002214/0.616, allocations: 1.813 MB / 0.5736 GB, free: 1.531 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0037/0.6197, allocations: 1.298 MB / 0.5749 GB, free: 300 kB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1253/0.745, allocations: 17.31 MB / 0.5918 GB, free: 102.8 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/0.7467, allocations: 2.284 MB / 0.594 GB, free: 102.5 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002118/0.7489, allocations: 0.8516 MB / 0.5948 GB, free: 102.4 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001847/0.7507, allocations: 1.203 MB / 0.596 GB, free: 102.3 MB / 426.8 MB Notification: Performance of SimCode: time 1.022e-06/0.7507, allocations: 3.312 kB / 0.596 GB, free: 102.3 MB / 426.8 MB Notification: Performance of Templates: time 0.08317/0.8339, allocations: 74.73 MB / 0.669 GB, free: 43.34 MB / 426.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.010802217293531]