Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009085/0.0009085, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0008927/0.0008927, allocations: 171.6 kB / 25.7 MB, free: 8.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8441/0.8441, allocations: 158.6 MB / 187.6 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 0 / 251.6 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.858e-06/1.106e-05, allocations: 6.25 kB / 251.6 MB, free: 7.203 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02701/0.02702, allocations: 39.16 MB / 290.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01963/0.04665, allocations: 11.6 MB / 302.3 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006886/0.05353, allocations: 330.1 kB / 302.7 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01027/0.06381, allocations: 9.373 MB / 312 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007779/0.07159, allocations: 3.999 MB / 316 MB, free: 6.461 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003555/0.07514, allocations: 2.498 MB / 318.5 MB, free: 3.957 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.08626, allocations: 14.46 MB / 333 MB, free: 5.445 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0186/0.1049, allocations: 18.17 MB / 351.2 MB, free: 3.055 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2087/0.3135, allocations: 11.26 MB / 362.4 MB, free: 32.61 MB / 330.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007381/0.3209, allocations: 7.993 MB / 370.4 MB, free: 32.61 MB / 330.8 MB Notification: Performance of NFPackage.collectConstants: time 0.001809/0.3227, allocations: 2.017 MB / 372.4 MB, free: 32.61 MB / 330.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002555/0.3253, allocations: 2.397 MB / 374.8 MB, free: 32.61 MB / 330.8 MB Notification: Performance of NFScalarize.scalarize: time 0.001936/0.3272, allocations: 4.363 MB / 379.2 MB, free: 32.61 MB / 330.8 MB Notification: Performance of NFVerifyModel.verify: time 0.004008/0.3312, allocations: 5.434 MB / 384.6 MB, free: 32.61 MB / 330.8 MB Notification: Performance of NFConvertDAE.convert: time 0.009402/0.3406, allocations: 13.26 MB / 397.9 MB, free: 28.24 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.3406, allocations: 0 / 397.9 MB, free: 28.24 MB / 330.8 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3406, allocations: 0 / 397.9 MB, free: 28.24 MB / 330.8 MB Notification: Performance of Transformations before backend: time 0.0003307/0.341, allocations: 1.156 kB / 397.9 MB, free: 28.24 MB / 330.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.01682/0.3578, allocations: 15.53 MB / 413.4 MB, free: 14.82 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.3578, allocations: 11.98 kB / 413.4 MB, free: 14.81 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02151/0.3793, allocations: 9.036 MB / 422.5 MB, free: 6.098 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006966/0.3863, allocations: 4.016 MB / 426.5 MB, free: 2.395 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003184/0.3866, allocations: 0.9637 MB / 427.5 MB, free: 1.441 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001281/0.3879, allocations: 1.277 MB / 428.7 MB, free: 188 kB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.4004, allocations: 10.51 MB / 439.2 MB, free: 6.121 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001927/0.4006, allocations: 34.45 kB / 439.3 MB, free: 6.098 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009176/0.4015, allocations: 0.523 MB / 439.8 MB, free: 5.586 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004651/0.402, allocations: 0.7511 MB / 440.6 MB, free: 4.836 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007882/0.4098, allocations: 5.342 MB / 445.9 MB, free: 15.51 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04304/0.4529, allocations: 39.49 MB / 485.4 MB, free: 9.281 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009851/0.4627, allocations: 8.824 MB / 494.2 MB, free: 0.6484 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001546/0.4643, allocations: 1.448 MB / 495.7 MB, free: 15.24 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008756/0.473, allocations: 5.389 MB / 0.4893 GB, free: 10.07 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/0.4731, allocations: 77.39 kB / 0.4894 GB, free: 9.984 MB / 410.8 MB Notification: Performance of pre-optimization done (n=361): time 4.909e-06/0.4731, allocations: 0 / 0.4894 GB, free: 9.984 MB / 410.8 MB Notification: Performance of matching and sorting (n=403): time 0.01441/0.4875, allocations: 8.52 MB / 0.4977 GB, free: 1.586 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.4875, allocations: 90.58 kB / 0.4978 GB, free: 1.484 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.133/0.6205, allocations: 3.855 MB / 0.5015 GB, free: 96.15 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005957/0.6211, allocations: 90.7 kB / 0.5016 GB, free: 96.12 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/0.6228, allocations: 5.711 MB / 0.5072 GB, free: 93.97 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006875/0.6235, allocations: 1.466 MB / 0.5086 GB, free: 93.22 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001245/0.6247, allocations: 1.447 MB / 0.5101 GB, free: 93.08 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.306e-05/0.6248, allocations: 304.1 kB / 0.5103 GB, free: 92.78 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.6259, allocations: 0.9598 MB / 0.5113 GB, free: 92.75 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.6277, allocations: 4.55 MB / 0.5157 GB, free: 88.02 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003524/0.6312, allocations: 6.328 MB / 0.5219 GB, free: 83.25 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-05/0.6312, allocations: 36.22 kB / 0.5219 GB, free: 83.25 MB / 410.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.005093/0.6363, allocations: 5.288 MB / 0.5271 GB, free: 82.96 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.083e-05/0.6364, allocations: 60.06 kB / 0.5272 GB, free: 82.96 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.786e-05/0.6364, allocations: 129.5 kB / 0.5273 GB, free: 82.96 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.6378, allocations: 0.8359 MB / 0.5281 GB, free: 82.9 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003073/0.6409, allocations: 1.724 MB / 0.5298 GB, free: 82.89 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00434/0.6452, allocations: 6.044 MB / 0.5357 GB, free: 79.23 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002871/0.6481, allocations: 341.9 kB / 0.536 GB, free: 79.19 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003674/0.6485, allocations: 348.3 kB / 0.5363 GB, free: 79.19 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002682/0.6512, allocations: 0.6805 MB / 0.537 GB, free: 79.07 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008485/0.652, allocations: 446.9 kB / 0.5374 GB, free: 79.07 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003925/0.6559, allocations: 2.843 MB / 0.5402 GB, free: 78.79 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-05/0.656, allocations: 41.69 kB / 0.5403 GB, free: 78.79 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.656, allocations: 8.156 kB / 0.5403 GB, free: 78.79 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.479e-05/0.656, allocations: 21.19 kB / 0.5403 GB, free: 78.79 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.6675, allocations: 7.181 MB / 0.5473 GB, free: 78.08 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.6675, allocations: 3.719 kB / 0.5473 GB, free: 78.08 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001598/0.6691, allocations: 0.6601 MB / 0.5479 GB, free: 78.07 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001298/0.6704, allocations: 0.6662 MB / 0.5486 GB, free: 78 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.6706, allocations: 79.45 kB / 0.5487 GB, free: 78 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003853/0.6744, allocations: 5.617 MB / 0.5542 GB, free: 74.37 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.6744, allocations: 3.969 kB / 0.5542 GB, free: 74.37 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004492/0.6789, allocations: 3.441 MB / 0.5575 GB, free: 73.71 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.6803, allocations: 0.608 MB / 0.5581 GB, free: 73.41 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004083/0.6807, allocations: 77.47 kB / 0.5582 GB, free: 73.41 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009684/0.6817, allocations: 111.5 kB / 0.5583 GB, free: 73.41 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/0.682, allocations: 283.4 kB / 0.5586 GB, free: 73.4 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/0.6821, allocations: 78.88 kB / 0.5586 GB, free: 73.4 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001713/0.6839, allocations: 1.762 MB / 0.5604 GB, free: 73.26 MB / 410.8 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6839, allocations: 0 / 0.5604 GB, free: 73.26 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.004677/0.6885, allocations: 2.032 MB / 0.5623 GB, free: 71.68 MB / 410.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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004311/0.689, allocations: 247.4 kB / 0.5626 GB, free: 71.55 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.003932/0.6929, allocations: 4.021 MB / 0.5665 GB, free: 68.61 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001605/0.6931, allocations: 116.2 kB / 0.5666 GB, free: 68.49 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.6945, allocations: 1.794 MB / 0.5684 GB, free: 67.11 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002649/0.6972, allocations: 1.301 MB / 0.5696 GB, free: 66.38 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02034/0.7175, allocations: 18.35 MB / 0.5876 GB, free: 50.89 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/0.7194, allocations: 2.388 MB / 0.5899 GB, free: 48.93 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.002468/0.7218, allocations: 0.9194 MB / 0.5908 GB, free: 48 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001863/0.7237, allocations: 1.239 MB / 0.592 GB, free: 46.8 MB / 410.8 MB Notification: Performance of SimCode: time 2.064e-06/0.7237, allocations: 0 / 0.592 GB, free: 46.8 MB / 410.8 MB Notification: Performance of Templates: time 0.2159/0.9396, allocations: 75.87 MB / 0.6661 GB, free: 108.4 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.334224975202233]