Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001188/0.001188, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001066/0.001066, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9278/0.9278, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 273 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.51e-05/1.647e-05, allocations: 2.312 kB / 273 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1602/0.1602, allocations: 41.06 MB / 314.1 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02135/0.1816, allocations: 11.15 MB / 325.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008428/0.19, allocations: 379.7 kB / 325.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01296/0.203, allocations: 9.372 MB / 335 MB, free: 4.664 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.2131, allocations: 3.773 MB / 338.8 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00449/0.2176, allocations: 2.465 MB / 341.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01263/0.2303, allocations: 13.99 MB / 355.2 MB, free: 376 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02134/0.2516, allocations: 17.46 MB / 372.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0132/0.2648, allocations: 10.68 MB / 383.3 MB, free: 4.055 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009227/0.274, allocations: 7.594 MB / 390.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004097/0.2781, allocations: 1.988 MB / 392.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005186/0.2833, allocations: 2.398 MB / 395.3 MB, free: 8.059 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002815/0.2861, allocations: 4.192 MB / 399.5 MB, free: 3.855 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006185/0.2923, allocations: 5.279 MB / 404.8 MB, free: 14.56 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.3055, allocations: 12.91 MB / 417.7 MB, free: 1.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3055, allocations: 0 / 417.7 MB, free: 1.617 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3055, allocations: 0 / 417.7 MB, free: 1.617 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003331/0.3058, allocations: 0 / 417.7 MB, free: 1.617 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.02316/0.329, allocations: 16.57 MB / 434.3 MB, free: 0.918 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.329, allocations: 12.03 kB / 434.3 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.271/0.6, allocations: 7.989 MB / 442.3 MB, free: 73.14 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/0.611, allocations: 7.906 MB / 450.2 MB, free: 72.49 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004309/0.6114, allocations: 0.9285 MB / 451.1 MB, free: 72.46 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001497/0.6129, allocations: 1.227 MB / 452.3 MB, free: 72.45 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/0.6297, allocations: 10.57 MB / 462.9 MB, free: 71.43 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001939/0.6299, allocations: 19.78 kB / 462.9 MB, free: 71.43 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007816/0.6306, allocations: 0.5084 MB / 463.4 MB, free: 71.07 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004042/0.6311, allocations: 0.6565 MB / 464.1 MB, free: 71 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/0.6417, allocations: 5.563 MB / 469.7 MB, free: 67.13 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04985/0.6916, allocations: 49.19 MB / 0.5067 GB, free: 18.17 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008269/0.6998, allocations: 9.028 MB / 0.5155 GB, free: 10.8 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002005/0.7018, allocations: 1.723 MB / 0.5172 GB, free: 9.066 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00724/0.7091, allocations: 5.863 MB / 0.5229 GB, free: 3.453 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.7091, allocations: 78.97 kB / 0.523 GB, free: 3.367 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.619e-06/0.7091, allocations: 2.438 kB / 0.523 GB, free: 3.367 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01749/0.7266, allocations: 10.99 MB / 0.5337 GB, free: 8.688 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.7267, allocations: 90.58 kB / 0.5338 GB, free: 8.586 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004741/0.7314, allocations: 4.628 MB / 0.5383 GB, free: 3.953 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001686/0.7316, allocations: 92.33 kB / 0.5384 GB, free: 3.859 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002657/0.7342, allocations: 6.087 MB / 0.5444 GB, free: 13.75 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008043/0.735, allocations: 1.491 MB / 0.5458 GB, free: 12.28 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001466/0.7365, allocations: 1.5 MB / 0.5473 GB, free: 10.77 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.7366, allocations: 480.8 kB / 0.5477 GB, free: 10.3 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.7382, allocations: 0.9856 MB / 0.5487 GB, free: 9.309 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003578/0.7418, allocations: 5.563 MB / 0.5541 GB, free: 1.816 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005811/0.7476, allocations: 7.231 MB / 0.5612 GB, free: 9.012 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.265e-05/0.7477, allocations: 28 kB / 0.5612 GB, free: 8.984 MB / 426.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.00796/0.7556, allocations: 6.335 MB / 0.5674 GB, free: 3.258 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.152e-05/0.7557, allocations: 48.81 kB / 0.5675 GB, free: 3.211 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.575e-05/0.7557, allocations: 100 kB / 0.5675 GB, free: 3.113 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/0.7574, allocations: 0.8935 MB / 0.5684 GB, free: 2.203 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/0.7605, allocations: 1.626 MB / 0.57 GB, free: 0.6953 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006624/0.7671, allocations: 8.462 MB / 0.5783 GB, free: 7.941 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002891/0.77, allocations: 415.6 kB / 0.5787 GB, free: 7.535 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000362/0.7704, allocations: 367.9 kB / 0.579 GB, free: 7.176 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.002426/0.7728, allocations: 0.6344 MB / 0.5796 GB, free: 6.648 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007961/0.7736, allocations: 0.6606 MB / 0.5803 GB, free: 5.984 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005259/0.7788, allocations: 3.802 MB / 0.584 GB, free: 2.164 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.7789, allocations: 40 kB / 0.584 GB, free: 2.125 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.7789, allocations: 8 kB / 0.584 GB, free: 2.117 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.7789, allocations: 19.92 kB / 0.5841 GB, free: 2.098 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1754/0.9543, allocations: 11.85 MB / 0.5956 GB, free: 104.5 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.9543, allocations: 5.188 kB / 0.5956 GB, free: 104.5 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001752/0.956, allocations: 0.7771 MB / 0.5964 GB, free: 104.5 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/0.9575, allocations: 0.736 MB / 0.5971 GB, free: 104.4 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/0.9577, allocations: 94.22 kB / 0.5972 GB, free: 104.4 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005017/0.9627, allocations: 8.005 MB / 0.605 GB, free: 99.04 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.9627, allocations: 2.656 kB / 0.605 GB, free: 99.04 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006652/0.9694, allocations: 4.79 MB / 0.6097 GB, free: 98.33 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001555/0.9709, allocations: 0.9537 MB / 0.6106 GB, free: 98.33 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003802/0.9713, allocations: 74.12 kB / 0.6107 GB, free: 98.33 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.9725, allocations: 222.8 kB / 0.6109 GB, free: 98.33 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003387/0.9728, allocations: 300.1 kB / 0.6112 GB, free: 98.32 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/0.973, allocations: 118 kB / 0.6113 GB, free: 98.32 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002632/0.9756, allocations: 2.178 MB / 0.6134 GB, free: 98.1 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9756, allocations: 0 / 0.6134 GB, free: 98.1 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004761/0.9804, allocations: 1.934 MB / 0.6153 GB, free: 98.1 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.0004296/0.9808, allocations: 270.9 kB / 0.6156 GB, free: 98.01 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.005757/0.9866, allocations: 4.768 MB / 0.6202 GB, free: 97.3 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.9866, allocations: 6.359 kB / 0.6202 GB, free: 97.3 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002283/0.9889, allocations: 2.346 MB / 0.6225 GB, free: 96.67 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/0.9921, allocations: 1.313 MB / 0.6238 GB, free: 96.55 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02028/1.012, allocations: 17.63 MB / 0.641 GB, free: 87.63 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/1.014, allocations: 3.1 MB / 0.6441 GB, free: 86.12 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.00318/1.018, allocations: 1.849 MB / 0.6459 GB, free: 84.96 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007674/1.018, allocations: 424.2 kB / 0.6463 GB, free: 84.61 MB / 442.8 MB Notification: Performance of SimCode: time 2.695e-06/1.018, allocations: 0 / 0.6463 GB, free: 84.61 MB / 442.8 MB Notification: Performance of Templates: time 0.08509/1.103, allocations: 68.88 MB / 0.7135 GB, free: 20.25 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.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.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.696835736744106]