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.00139/0.00139, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.00138/0.00138, allocations: 169.6 kB / 25.32 MB, free: 9.469 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.8602/0.8602, allocations: 158.6 MB / 187.2 MB, free: 2.512 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.694e-06/1.694e-06, allocations: 0 / 251.1 MB, free: 3.535 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.618e-05/2.787e-05, allocations: 2.312 kB / 251.1 MB, free: 3.531 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03255/0.03258, allocations: 40.94 MB / 292 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1603/0.1929, allocations: 11.02 MB / 303.1 MB, free: 16.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006733/0.1996, allocations: 327.1 kB / 303.4 MB, free: 16.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01078/0.2104, allocations: 9.405 MB / 312.8 MB, free: 16.3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008674/0.2191, allocations: 3.983 MB / 316.8 MB, free: 15.73 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004354/0.2235, allocations: 2.496 MB / 319.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.2343, allocations: 14.45 MB / 333.7 MB, free: 9.191 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01813/0.2524, allocations: 17.69 MB / 351.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01246/0.2649, allocations: 11.23 MB / 362.6 MB, free: 1.977 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009395/0.2743, allocations: 7.894 MB / 370.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00437/0.2786, allocations: 2.016 MB / 372.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00461/0.2832, allocations: 2.41 MB / 375 MB, free: 6.156 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002764/0.286, allocations: 4.362 MB / 379.3 MB, free: 2.066 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00721/0.2932, allocations: 5.432 MB / 384.8 MB, free: 12.89 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01352/0.3067, allocations: 13.26 MB / 398 MB, free: 392 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3067, allocations: 0 / 398 MB, free: 392 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3068, allocations: 0 / 398 MB, free: 392 kB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003689/0.3071, allocations: 4 kB / 398 MB, free: 388 kB / 330.7 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.02451/0.3316, allocations: 17.09 MB / 415.1 MB, free: 15.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3317, allocations: 15.98 kB / 415.1 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02672/0.3584, allocations: 11.47 MB / 426.6 MB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.3693, allocations: 7.174 MB / 433.8 MB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005472/0.3698, allocations: 0.967 MB / 434.7 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001639/0.3715, allocations: 1.279 MB / 436 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2663/0.6378, allocations: 11.25 MB / 447.3 MB, free: 80.39 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000436/0.6382, allocations: 23.03 kB / 447.3 MB, free: 80.39 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001662/0.6399, allocations: 0.5218 MB / 447.8 MB, free: 80.39 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007236/0.6406, allocations: 0.7478 MB / 448.6 MB, free: 80.36 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01746/0.6581, allocations: 6.379 MB / 454.9 MB, free: 80.2 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05096/0.709, allocations: 51.16 MB / 0.4942 GB, free: 55.27 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01251/0.7215, allocations: 13.99 MB / 0.5079 GB, free: 47.01 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002321/0.7239, allocations: 1.892 MB / 0.5098 GB, free: 45.11 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009568/0.7334, allocations: 7.19 MB / 0.5168 GB, free: 38.23 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.7335, allocations: 77.33 kB / 0.5168 GB, free: 38.14 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.95e-06/0.7335, allocations: 0 / 0.5168 GB, free: 38.14 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.0168/0.7503, allocations: 11.04 MB / 0.5276 GB, free: 27.68 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.7503, allocations: 90.58 kB / 0.5277 GB, free: 27.58 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004489/0.7548, allocations: 5.051 MB / 0.5326 GB, free: 22.71 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.755, allocations: 93.7 kB / 0.5327 GB, free: 22.61 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.757, allocations: 6.545 MB / 0.5391 GB, free: 16.27 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006703/0.7577, allocations: 1.511 MB / 0.5406 GB, free: 14.78 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/0.7595, allocations: 1.695 MB / 0.5423 GB, free: 13.07 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.051e-05/0.7596, allocations: 486.6 kB / 0.5427 GB, free: 12.6 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/0.7616, allocations: 1.054 MB / 0.5438 GB, free: 11.54 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003906/0.7655, allocations: 6.677 MB / 0.5503 GB, free: 2.453 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008545/0.774, allocations: 8.557 MB / 0.5586 GB, free: 7.922 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.917e-05/0.7741, allocations: 36.55 kB / 0.5587 GB, free: 7.887 MB / 394.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01234/0.7864, allocations: 7.084 MB / 0.5656 GB, free: 1.578 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.306e-05/0.7865, allocations: 63.78 kB / 0.5656 GB, free: 1.52 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001387/0.7866, allocations: 128 kB / 0.5658 GB, free: 1.395 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002601/0.7892, allocations: 0.9297 MB / 0.5667 GB, free: 460 kB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00463/0.7939, allocations: 1.836 MB / 0.5685 GB, free: 14.75 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008262/0.8021, allocations: 8.513 MB / 0.5768 GB, free: 5.957 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003903/0.806, allocations: 439.6 kB / 0.5772 GB, free: 5.527 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005224/0.8065, allocations: 432 kB / 0.5776 GB, free: 5.105 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.002487/0.809, allocations: 0.7189 MB / 0.5783 GB, free: 4.516 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007901/0.8098, allocations: 0.6917 MB / 0.579 GB, free: 3.82 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005461/0.8153, allocations: 3.782 MB / 0.5827 GB, free: 16 kB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.271e-05/0.8153, allocations: 43.98 kB / 0.5827 GB, free: 15.97 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.8153, allocations: 16 kB / 0.5827 GB, free: 15.96 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.547e-05/0.8154, allocations: 19.92 kB / 0.5828 GB, free: 15.94 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/0.8324, allocations: 12.04 MB / 0.5945 GB, free: 3.91 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.609e-06/0.8324, allocations: 4 kB / 0.5945 GB, free: 3.906 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00202/0.8345, allocations: 0.7678 MB / 0.5953 GB, free: 3.176 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.836, allocations: 0.7388 MB / 0.596 GB, free: 2.418 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001983/0.8362, allocations: 87.97 kB / 0.5961 GB, free: 2.332 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1474/0.9836, allocations: 7.991 MB / 0.6039 GB, free: 99.86 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.9836, allocations: 4.688 kB / 0.6039 GB, free: 99.86 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007986/0.9916, allocations: 4.786 MB / 0.6086 GB, free: 99.15 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/0.9933, allocations: 0.9556 MB / 0.6095 GB, free: 99.15 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005271/0.9938, allocations: 75.16 kB / 0.6096 GB, free: 99.15 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.9954, allocations: 214.2 kB / 0.6098 GB, free: 99.15 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004651/0.9958, allocations: 289.8 kB / 0.61 GB, free: 99.14 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000211/0.996, allocations: 118.1 kB / 0.6102 GB, free: 99.14 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003188/0.9992, allocations: 2.31 MB / 0.6124 GB, free: 98.92 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9992, allocations: 3.719 kB / 0.6124 GB, free: 98.92 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.005446/1.005, allocations: 2.03 MB / 0.6144 GB, free: 98.92 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%), (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.0004425/1.005, allocations: 259 kB / 0.6146 GB, free: 98.84 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.006674/1.012, allocations: 5.079 MB / 0.6196 GB, free: 98.12 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/1.012, allocations: 3.375 kB / 0.6196 GB, free: 98.12 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00271/1.014, allocations: 2.318 MB / 0.6219 GB, free: 97.49 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003602/1.018, allocations: 1.311 MB / 0.6231 GB, free: 97.37 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0397/1.058, allocations: 18.65 MB / 0.6414 GB, free: 90.39 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002045/1.06, allocations: 3.227 MB / 0.6445 GB, free: 90.06 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003147/1.063, allocations: 2.039 MB / 0.6465 GB, free: 89.77 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007698/1.064, allocations: 427.9 kB / 0.6469 GB, free: 89.76 MB / 426.8 MB Notification: Performance of SimCode: time 1.383e-06/1.064, allocations: 0 / 0.6469 GB, free: 89.76 MB / 426.8 MB Notification: Performance of Templates: time 0.07782/1.142, allocations: 72.15 MB / 0.7174 GB, free: 22.61 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.6609085709787905]