Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 148.1 kB / 24.97 MB, free: 8.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9172/0.9172, allocations: 173.4 MB / 201.5 MB, free: 9.363 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 3.938 kB / 268.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.617e-05, allocations: 2.312 kB / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1365/0.1365, allocations: 40.19 MB / 308.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01957/0.1561, allocations: 10.88 MB / 319.2 MB, free: 5.652 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007387/0.1635, allocations: 374.4 kB / 319.6 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01099/0.1744, allocations: 9.327 MB / 328.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01088/0.1853, allocations: 3.766 MB / 332.7 MB, free: 10.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005506/0.1908, allocations: 2.428 MB / 335.1 MB, free: 8.242 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01462/0.2054, allocations: 13.88 MB / 349 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02241/0.2279, allocations: 17.45 MB / 366.4 MB, free: 8.703 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01497/0.2428, allocations: 10.67 MB / 377.1 MB, free: 14.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01004/0.2529, allocations: 7.536 MB / 384.6 MB, free: 6.469 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004634/0.2575, allocations: 1.988 MB / 386.6 MB, free: 4.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005563/0.2631, allocations: 2.374 MB / 389 MB, free: 2.105 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003251/0.2663, allocations: 4.196 MB / 393.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00702/0.2733, allocations: 5.275 MB / 398.5 MB, free: 8.613 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01448/0.2878, allocations: 12.88 MB / 411.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2878, allocations: 0 / 411.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2878, allocations: 0 / 411.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004427/0.2883, allocations: 8 kB / 411.3 MB, free: 11.69 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.02719/0.3155, allocations: 16.52 MB / 427.9 MB, free: 11.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.3155, allocations: 12.92 kB / 427.9 MB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02183/0.3373, allocations: 8.093 MB / 436 MB, free: 2.922 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2032/0.5405, allocations: 7.874 MB / 443.8 MB, free: 119.7 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005322/0.541, allocations: 0.9306 MB / 444.8 MB, free: 119.3 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001849/0.5429, allocations: 1.231 MB / 446 MB, free: 118.9 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01694/0.5598, allocations: 10.53 MB / 456.5 MB, free: 115.3 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002057/0.56, allocations: 24.48 kB / 456.6 MB, free: 115.3 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007579/0.5608, allocations: 0.5063 MB / 457.1 MB, free: 114.9 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003399/0.5611, allocations: 0.6533 MB / 457.7 MB, free: 114.9 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/0.5727, allocations: 5.539 MB / 463.2 MB, free: 114 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04388/0.6166, allocations: 49.09 MB / 0.5003 GB, free: 65.08 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008118/0.6247, allocations: 8.896 MB / 0.509 GB, free: 57.82 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002026/0.6268, allocations: 1.716 MB / 0.5107 GB, free: 56.09 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007123/0.6339, allocations: 5.781 MB / 0.5163 GB, free: 50.5 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.6339, allocations: 76.17 kB / 0.5164 GB, free: 50.41 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 5.09e-06/0.6339, allocations: 0 / 0.5164 GB, free: 50.41 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01951/0.6534, allocations: 10.92 MB / 0.5271 GB, free: 39.7 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.6535, allocations: 98.52 kB / 0.5272 GB, free: 39.59 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005151/0.6586, allocations: 4.602 MB / 0.5317 GB, free: 34.98 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001929/0.6588, allocations: 93.64 kB / 0.5318 GB, free: 34.88 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002346/0.6612, allocations: 6.073 MB / 0.5377 GB, free: 28.79 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008054/0.662, allocations: 1.495 MB / 0.5391 GB, free: 27.31 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001656/0.6636, allocations: 1.492 MB / 0.5406 GB, free: 25.81 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.204e-05/0.6637, allocations: 480.7 kB / 0.5411 GB, free: 25.34 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002028/0.6657, allocations: 0.9856 MB / 0.542 GB, free: 24.35 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003402/0.6691, allocations: 5.563 MB / 0.5475 GB, free: 16.8 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006094/0.6752, allocations: 7.211 MB / 0.5545 GB, free: 7.594 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.453e-05/0.6752, allocations: 32 kB / 0.5545 GB, free: 7.562 MB / 378.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.009366/0.6846, allocations: 6.301 MB / 0.5607 GB, free: 1.195 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/0.6846, allocations: 48 kB / 0.5607 GB, free: 1.148 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.279e-05/0.6847, allocations: 104 kB / 0.5608 GB, free: 1.047 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/0.6864, allocations: 0.8958 MB / 0.5617 GB, free: 132 kB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003105/0.6895, allocations: 1.622 MB / 0.5633 GB, free: 14.5 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006971/0.6965, allocations: 8.466 MB / 0.5716 GB, free: 5.664 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003084/0.6996, allocations: 411.5 kB / 0.5719 GB, free: 5.262 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004413/0.7, allocations: 364 kB / 0.5723 GB, free: 4.906 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.002414/0.7024, allocations: 0.6421 MB / 0.5729 GB, free: 4.25 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009117/0.7033, allocations: 0.6529 MB / 0.5736 GB, free: 3.594 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1256/0.8289, allocations: 3.795 MB / 0.5773 GB, free: 104.9 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.932e-05/0.8289, allocations: 43.16 kB / 0.5773 GB, free: 104.9 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.8289, allocations: 8.219 kB / 0.5773 GB, free: 104.9 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-05/0.829, allocations: 20.91 kB / 0.5773 GB, free: 104.9 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01781/0.8468, allocations: 11.82 MB / 0.5889 GB, free: 104.1 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.8469, allocations: 3.656 kB / 0.5889 GB, free: 104.1 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/0.8486, allocations: 0.77 MB / 0.5896 GB, free: 104 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/0.8501, allocations: 0.7402 MB / 0.5904 GB, free: 103.9 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002081/0.8503, allocations: 90.77 kB / 0.5904 GB, free: 103.9 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004751/0.8551, allocations: 7.993 MB / 0.5982 GB, free: 98.5 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.8551, allocations: 7.656 kB / 0.5983 GB, free: 98.5 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006227/0.8613, allocations: 4.764 MB / 0.6029 GB, free: 97.76 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.8627, allocations: 0.947 MB / 0.6038 GB, free: 97.76 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004463/0.8631, allocations: 77.81 kB / 0.6039 GB, free: 97.76 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.8643, allocations: 230.1 kB / 0.6041 GB, free: 97.76 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004015/0.8647, allocations: 293 kB / 0.6044 GB, free: 97.75 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002103/0.8649, allocations: 119.3 kB / 0.6045 GB, free: 97.75 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.002581/0.8675, allocations: 2.164 MB / 0.6066 GB, free: 97.4 MB / 394.8 MB Notification: Performance of sort global known variables: time 7e-08/0.8675, allocations: 0 / 0.6066 GB, free: 97.4 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.004565/0.8721, allocations: 1.93 MB / 0.6085 GB, free: 97.22 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,62.5%), (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.0004606/0.8726, allocations: 265.4 kB / 0.6088 GB, free: 97.04 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.005769/0.8783, allocations: 4.759 MB / 0.6134 GB, free: 95.39 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.8783, allocations: 0 / 0.6134 GB, free: 95.39 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002331/0.8807, allocations: 2.327 MB / 0.6157 GB, free: 94.38 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/0.8839, allocations: 1.298 MB / 0.617 GB, free: 93.96 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02194/0.9058, allocations: 17.66 MB / 0.6342 GB, free: 80.4 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002186/0.908, allocations: 3.1 MB / 0.6372 GB, free: 78.14 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.003316/0.9113, allocations: 1.85 MB / 0.639 GB, free: 76.98 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007611/0.9121, allocations: 408 kB / 0.6394 GB, free: 76.6 MB / 394.8 MB Notification: Performance of SimCode: time 2.184e-06/0.9121, allocations: 0 / 0.6394 GB, free: 76.6 MB / 394.8 MB Notification: Performance of Templates: time 0.08095/0.993, allocations: 68.08 MB / 0.7059 GB, free: 10.25 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.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.0.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.4698397510219365]