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.001532/0.001532, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001786/0.001786, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9548/0.9548, allocations: 177 MB / 204.8 MB, free: 5.562 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 2.454e-06/2.454e-06, allocations: 0 / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.581e-05/2.826e-05, allocations: 2.312 kB / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.147/0.147, allocations: 41.07 MB / 314 MB, free: 6.977 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01837/0.1654, allocations: 11.15 MB / 325.2 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007646/0.1731, allocations: 381.9 kB / 325.6 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01109/0.1841, allocations: 9.368 MB / 334.9 MB, free: 4.617 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008358/0.1925, allocations: 3.763 MB / 338.7 MB, free: 0.832 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004027/0.1965, allocations: 2.472 MB / 341.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.2083, allocations: 13.99 MB / 355.2 MB, free: 328 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02129/0.2296, allocations: 17.46 MB / 372.6 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01207/0.2417, allocations: 10.68 MB / 383.3 MB, free: 4 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008847/0.2505, allocations: 7.587 MB / 390.9 MB, free: 12.4 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004046/0.2546, allocations: 1.988 MB / 392.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004573/0.2592, allocations: 2.405 MB / 395.3 MB, free: 8.004 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002957/0.2621, allocations: 4.192 MB / 399.5 MB, free: 3.801 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007717/0.2698, allocations: 5.283 MB / 404.8 MB, free: 14.51 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01362/0.2835, allocations: 12.9 MB / 417.7 MB, free: 1.566 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.2835, allocations: 0 / 417.7 MB, free: 1.566 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2835, allocations: 3.984 kB / 417.7 MB, free: 1.562 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003825/0.2838, allocations: 4 kB / 417.7 MB, free: 1.559 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.02496/0.3088, allocations: 16.57 MB / 434.3 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3088, allocations: 11.98 kB / 434.3 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2632/0.5721, allocations: 7.997 MB / 442.3 MB, free: 73.27 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01226/0.5843, allocations: 7.916 MB / 450.2 MB, free: 72.62 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006495/0.585, allocations: 0.9277 MB / 451.1 MB, free: 72.59 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003343/0.5883, allocations: 1.238 MB / 452.3 MB, free: 72.58 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02317/0.6115, allocations: 10.56 MB / 462.9 MB, free: 71.4 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002987/0.6118, allocations: 25.28 kB / 462.9 MB, free: 71.39 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001061/0.6128, allocations: 0.5006 MB / 463.4 MB, free: 71 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003943/0.6132, allocations: 0.6549 MB / 464.1 MB, free: 70.94 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01487/0.6281, allocations: 5.563 MB / 469.7 MB, free: 66.93 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05898/0.6871, allocations: 49.18 MB / 0.5067 GB, free: 17.98 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008748/0.6958, allocations: 9.02 MB / 0.5155 GB, free: 10.62 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002161/0.698, allocations: 1.729 MB / 0.5172 GB, free: 8.883 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008225/0.7062, allocations: 5.857 MB / 0.5229 GB, free: 3.277 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.7063, allocations: 76.23 kB / 0.523 GB, free: 3.191 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 5.32e-06/0.7063, allocations: 4 kB / 0.523 GB, free: 3.188 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.02314/0.7294, allocations: 10.98 MB / 0.5337 GB, free: 8.516 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.608e-05/0.7295, allocations: 94.58 kB / 0.5338 GB, free: 8.41 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007157/0.7366, allocations: 4.624 MB / 0.5383 GB, free: 3.781 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002796/0.7369, allocations: 93.7 kB / 0.5384 GB, free: 3.684 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004/0.7409, allocations: 6.08 MB / 0.5443 GB, free: 13.59 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001261/0.7422, allocations: 1.498 MB / 0.5458 GB, free: 12.11 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001987/0.7442, allocations: 1.496 MB / 0.5472 GB, free: 10.6 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.7443, allocations: 480.8 kB / 0.5477 GB, free: 10.12 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/0.7469, allocations: 0.997 MB / 0.5487 GB, free: 9.129 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004984/0.7519, allocations: 5.555 MB / 0.5541 GB, free: 1.641 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008093/0.76, allocations: 7.24 MB / 0.5612 GB, free: 8.828 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.481e-05/0.7601, allocations: 28 kB / 0.5612 GB, free: 8.801 MB / 426.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01166/0.7717, allocations: 6.334 MB / 0.5674 GB, free: 3.082 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.262e-05/0.7718, allocations: 54.66 kB / 0.5674 GB, free: 3.031 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/0.7719, allocations: 100 kB / 0.5675 GB, free: 2.934 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002379/0.7743, allocations: 0.8845 MB / 0.5684 GB, free: 2.031 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003032/0.7773, allocations: 1.629 MB / 0.57 GB, free: 0.5195 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006815/0.7842, allocations: 8.461 MB / 0.5782 GB, free: 7.762 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003008/0.7872, allocations: 415.6 kB / 0.5786 GB, free: 7.355 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004219/0.7876, allocations: 367.9 kB / 0.579 GB, free: 6.996 MB / 442.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.002429/0.79, allocations: 0.6384 MB / 0.5796 GB, free: 6.465 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/0.791, allocations: 0.6645 MB / 0.5803 GB, free: 5.797 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005681/0.7967, allocations: 3.797 MB / 0.584 GB, free: 1.98 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/0.7967, allocations: 47.98 kB / 0.584 GB, free: 1.934 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.7968, allocations: 8 kB / 0.584 GB, free: 1.926 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.426e-05/0.7968, allocations: 23.91 kB / 0.5841 GB, free: 1.902 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1841/0.9808, allocations: 11.85 MB / 0.5956 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/0.9809, allocations: 3.656 kB / 0.5956 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/0.9827, allocations: 0.7759 MB / 0.5964 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001616/0.9843, allocations: 0.7423 MB / 0.5971 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002453/0.9846, allocations: 95.5 kB / 0.5972 GB, free: 104.8 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005097/0.9897, allocations: 7.993 MB / 0.605 GB, free: 99.36 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.9897, allocations: 11.91 kB / 0.605 GB, free: 99.36 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006986/0.9967, allocations: 4.785 MB / 0.6097 GB, free: 98.65 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/0.9985, allocations: 0.9574 MB / 0.6106 GB, free: 98.65 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005058/0.999, allocations: 79.12 kB / 0.6107 GB, free: 98.65 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/1, allocations: 223 kB / 0.6109 GB, free: 98.65 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004267/1.001, allocations: 294.6 kB / 0.6112 GB, free: 98.64 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001739/1.001, allocations: 125 kB / 0.6113 GB, free: 98.64 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.00304/1.004, allocations: 2.184 MB / 0.6134 GB, free: 98.42 MB / 442.8 MB Notification: Performance of sort global known variables: time 4.21e-07/1.004, allocations: 0 / 0.6134 GB, free: 98.42 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.005527/1.009, allocations: 1.932 MB / 0.6153 GB, free: 98.42 MB / 442.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.0006728/1.01, allocations: 267.1 kB / 0.6156 GB, free: 98.33 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.007189/1.017, allocations: 4.77 MB / 0.6202 GB, free: 97.62 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.017, allocations: 3.938 kB / 0.6203 GB, free: 97.62 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00298/1.02, allocations: 2.336 MB / 0.6225 GB, free: 96.98 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004766/1.025, allocations: 1.313 MB / 0.6238 GB, free: 96.88 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02722/1.052, allocations: 17.65 MB / 0.6411 GB, free: 87.75 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003489/1.056, allocations: 3.104 MB / 0.6441 GB, free: 86.24 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.00388/1.06, allocations: 1.849 MB / 0.6459 GB, free: 85.08 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009931/1.061, allocations: 423.1 kB / 0.6463 GB, free: 84.72 MB / 442.8 MB Notification: Performance of SimCode: time 2.455e-06/1.061, allocations: 0 / 0.6463 GB, free: 84.72 MB / 442.8 MB Notification: Performance of Templates: time 0.0849/1.146, allocations: 68.85 MB / 0.7135 GB, free: 20.07 MB / 442.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.825366428121924]