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.0014/0.0014, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001511/0.001511, allocations: 162.5 kB / 25.6 MB, free: 8.598 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.8996/0.8996, allocations: 158.6 MB / 187.5 MB, free: 2.789 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.463e-06/1.463e-06, allocations: 0 / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.527e-05/2.673e-05, allocations: 6.25 kB / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03397/0.034, allocations: 39.13 MB / 290.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02086/0.05486, allocations: 10.99 MB / 301.7 MB, free: 4.953 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005848/0.06071, allocations: 326.1 kB / 302 MB, free: 4.633 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01/0.07072, allocations: 9.117 MB / 311.1 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009258/0.07997, allocations: 3.968 MB / 315.1 MB, free: 7.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004654/0.08463, allocations: 2.475 MB / 317.5 MB, free: 5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01663/0.1013, allocations: 14.43 MB / 332 MB, free: 6.512 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02298/0.1242, allocations: 17.7 MB / 349.7 MB, free: 4.641 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1625/0.2868, allocations: 11.22 MB / 360.9 MB, free: 34.73 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01298/0.2997, allocations: 7.924 MB / 368.8 MB, free: 34.73 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006309/0.306, allocations: 2.013 MB / 370.8 MB, free: 34.73 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01068/0.3167, allocations: 2.41 MB / 373.2 MB, free: 34.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007944/0.3247, allocations: 4.363 MB / 377.6 MB, free: 34.73 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01244/0.3371, allocations: 5.431 MB / 383 MB, free: 34.73 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02175/0.3589, allocations: 13.26 MB / 396.3 MB, free: 31.1 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/0.3589, allocations: 6.734 kB / 396.3 MB, free: 31.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3589, allocations: 0 / 396.3 MB, free: 31.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0008768/0.3597, allocations: 0 / 396.3 MB, free: 31.1 MB / 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.03115/0.3909, allocations: 16.52 MB / 412.8 MB, free: 17.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.3909, allocations: 11.98 kB / 412.8 MB, free: 17.42 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02752/0.4185, allocations: 8.58 MB / 421.4 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.4296, allocations: 6.667 MB / 428.1 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006387/0.4302, allocations: 0.9648 MB / 429 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004054/0.4343, allocations: 1.281 MB / 430.3 MB, free: 424 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03204/0.4663, allocations: 10.29 MB / 440.6 MB, free: 6.547 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003983/0.4667, allocations: 27.08 kB / 440.6 MB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003152/0.4699, allocations: 0.5313 MB / 441.2 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005718/0.4704, allocations: 0.7416 MB / 441.9 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01721/0.4876, allocations: 5 MB / 446.9 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2185/0.7061, allocations: 50.54 MB / 497.4 MB, free: 68.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/0.7171, allocations: 12.31 MB / 0.4978 GB, free: 67.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001976/0.7191, allocations: 1.636 MB / 0.4994 GB, free: 67.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009413/0.7285, allocations: 6.876 MB / 0.5061 GB, free: 66.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.7285, allocations: 76.91 kB / 0.5062 GB, free: 66.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=361): time 4.879e-06/0.7285, allocations: 0 / 0.5062 GB, free: 66.88 MB / 394.7 MB Notification: Performance of matching and sorting (n=403): time 0.01543/0.744, allocations: 8.966 MB / 0.5149 GB, free: 65.92 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.744, allocations: 98.98 kB / 0.515 GB, free: 65.85 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004941/0.749, allocations: 4.997 MB / 0.5199 GB, free: 65.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002903/0.7492, allocations: 87.86 kB / 0.52 GB, free: 65.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002258/0.7515, allocations: 6.583 MB / 0.5264 GB, free: 61.83 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008146/0.7523, allocations: 1.526 MB / 0.5279 GB, free: 60.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001565/0.7539, allocations: 1.721 MB / 0.5296 GB, free: 60.74 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.642e-05/0.7539, allocations: 480.6 kB / 0.5301 GB, free: 60.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.7549, allocations: 0.8116 MB / 0.5309 GB, free: 60.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002256/0.7572, allocations: 6.47 MB / 0.5372 GB, free: 53.24 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004368/0.7616, allocations: 8.185 MB / 0.5452 GB, free: 46.13 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.708e-05/0.7616, allocations: 41.06 kB / 0.5452 GB, free: 46.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.007004/0.7686, allocations: 6.497 MB / 0.5515 GB, free: 45.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.206e-05/0.7687, allocations: 60.91 kB / 0.5516 GB, free: 45.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001139/0.7688, allocations: 128.1 kB / 0.5517 GB, free: 45.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/0.7703, allocations: 0.8944 MB / 0.5526 GB, free: 45.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/0.7733, allocations: 1.733 MB / 0.5543 GB, free: 45.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004502/0.7778, allocations: 8.246 MB / 0.5623 GB, free: 38.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003401/0.7812, allocations: 328 kB / 0.5627 GB, free: 38.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004923/0.7817, allocations: 363 kB / 0.563 GB, free: 38.22 MB / 394.7 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.002525/0.7842, allocations: 0.7229 MB / 0.5637 GB, free: 37.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000845/0.7851, allocations: 0.6824 MB / 0.5644 GB, free: 37.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003661/0.7887, allocations: 3.419 MB / 0.5677 GB, free: 35.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.7887, allocations: 43.94 kB / 0.5678 GB, free: 35.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.7887, allocations: 8 kB / 0.5678 GB, free: 35.13 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.025e-05/0.7888, allocations: 19.64 kB / 0.5678 GB, free: 35.13 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01194/0.8007, allocations: 9.116 MB / 0.5767 GB, free: 30.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.8007, allocations: 4 kB / 0.5767 GB, free: 30.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/0.8022, allocations: 0.6733 MB / 0.5774 GB, free: 29.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.8036, allocations: 0.7098 MB / 0.578 GB, free: 29.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002041/0.8038, allocations: 92.75 kB / 0.5781 GB, free: 29.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004077/0.8079, allocations: 7.751 MB / 0.5857 GB, free: 22.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.8079, allocations: 7.812 kB / 0.5857 GB, free: 22.72 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00569/0.8136, allocations: 4.23 MB / 0.5898 GB, free: 19.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001756/0.8153, allocations: 0.8829 MB / 0.5907 GB, free: 18.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005722/0.8159, allocations: 77.8 kB / 0.5908 GB, free: 18.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.8171, allocations: 115.3 kB / 0.5909 GB, free: 18.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003647/0.8174, allocations: 296.9 kB / 0.5912 GB, free: 18.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.8176, allocations: 88.11 kB / 0.5913 GB, free: 18.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002084/0.8197, allocations: 2.133 MB / 0.5933 GB, free: 16.76 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8197, allocations: 0 / 0.5933 GB, free: 16.76 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005729/0.8254, allocations: 2.026 MB / 0.5953 GB, free: 14.93 MB / 394.7 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.0004984/0.8259, allocations: 263.2 kB / 0.5956 GB, free: 14.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005355/0.8312, allocations: 4.679 MB / 0.6001 GB, free: 10.72 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.8312, allocations: 0 / 0.6001 GB, free: 10.72 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/0.8333, allocations: 2.151 MB / 0.6022 GB, free: 8.629 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003729/0.837, allocations: 1.32 MB / 0.6035 GB, free: 7.332 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02765/0.8646, allocations: 18.51 MB / 0.6216 GB, free: 4.746 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004644/0.8693, allocations: 3.224 MB / 0.6247 GB, free: 1.488 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003176/0.8725, allocations: 0.9194 MB / 0.6256 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002619/0.8751, allocations: 1.376 MB / 0.627 GB, free: 15.18 MB / 426.7 MB Notification: Performance of SimCode: time 2.305e-06/0.8751, allocations: 0 / 0.627 GB, free: 15.18 MB / 426.7 MB Notification: Performance of Templates: time 0.2269/1.102, allocations: 75.4 MB / 0.7006 GB, free: 81.14 MB / 426.7 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.503625375684351]