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.0009956/0.0009956, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009641/0.0009641, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.949/0.949, allocations: 173.3 MB / 201.1 MB, free: 9.34 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 2.285e-06/2.285e-06, allocations: 3.984 kB / 268.1 MB, free: 6.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.378e-05/2.607e-05, allocations: 6.25 kB / 268.1 MB, free: 6.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.145/0.145, allocations: 40.43 MB / 308.5 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02139/0.1664, allocations: 10.89 MB / 319.4 MB, free: 5.328 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007857/0.1742, allocations: 377.2 kB / 319.7 MB, free: 5.199 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01141/0.1857, allocations: 9.363 MB / 329.1 MB, free: 13.9 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0107/0.1964, allocations: 3.758 MB / 332.9 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004379/0.2007, allocations: 2.429 MB / 335.3 MB, free: 7.691 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01421/0.2149, allocations: 13.89 MB / 349.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02216/0.2371, allocations: 17.45 MB / 366.6 MB, free: 8.145 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01344/0.2505, allocations: 10.67 MB / 377.3 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01016/0.2607, allocations: 7.555 MB / 384.9 MB, free: 5.887 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004025/0.2647, allocations: 1.988 MB / 386.8 MB, free: 3.898 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004948/0.2697, allocations: 2.382 MB / 389.2 MB, free: 1.516 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003435/0.2731, allocations: 4.192 MB / 393.4 MB, free: 13.31 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007408/0.2805, allocations: 5.271 MB / 398.7 MB, free: 8.031 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.2967, allocations: 12.88 MB / 411.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.2967, allocations: 0 / 411.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2967, allocations: 4 kB / 411.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005053/0.2972, allocations: 0 / 411.6 MB, free: 11.11 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.02627/0.3235, allocations: 16.53 MB / 428.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.3235, allocations: 12.92 kB / 428.1 MB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0189/0.3424, allocations: 8.089 MB / 436.2 MB, free: 2.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1555/0.4979, allocations: 7.877 MB / 444.1 MB, free: 80.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007674/0.4987, allocations: 0.9321 MB / 445 MB, free: 80.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001871/0.5006, allocations: 1.224 MB / 446.2 MB, free: 80.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01757/0.5181, allocations: 10.54 MB / 456.8 MB, free: 79.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001956/0.5183, allocations: 20.7 kB / 456.8 MB, free: 79.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007853/0.5191, allocations: 0.507 MB / 457.3 MB, free: 79.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003636/0.5195, allocations: 0.6583 MB / 458 MB, free: 79.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/0.5298, allocations: 5.528 MB / 463.5 MB, free: 79.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04035/0.5702, allocations: 49.08 MB / 0.5006 GB, free: 36.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007896/0.5781, allocations: 8.917 MB / 0.5093 GB, free: 29.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001959/0.58, allocations: 1.71 MB / 0.5109 GB, free: 27.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007048/0.5871, allocations: 5.776 MB / 0.5166 GB, free: 21.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.5871, allocations: 76.23 kB / 0.5166 GB, free: 21.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=361): time 5.139e-06/0.5871, allocations: 0 / 0.5166 GB, free: 21.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=403): time 0.01579/0.6029, allocations: 10.94 MB / 0.5273 GB, free: 10.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.6029, allocations: 94.58 kB / 0.5274 GB, free: 10.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.6068, allocations: 4.603 MB / 0.5319 GB, free: 6.086 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001739/0.607, allocations: 93.7 kB / 0.532 GB, free: 5.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.6086, allocations: 6.068 MB / 0.5379 GB, free: 15.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008695/0.6095, allocations: 1.498 MB / 0.5394 GB, free: 14.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001512/0.611, allocations: 1.492 MB / 0.5408 GB, free: 12.92 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.383e-05/0.6111, allocations: 480.7 kB / 0.5413 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001825/0.6129, allocations: 0.9817 MB / 0.5423 GB, free: 11.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003645/0.6166, allocations: 5.557 MB / 0.5477 GB, free: 3.969 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006079/0.6227, allocations: 7.219 MB / 0.5547 GB, free: 11.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.516e-05/0.6227, allocations: 28 kB / 0.5548 GB, free: 11.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.00897/0.6317, allocations: 6.304 MB / 0.5609 GB, free: 5.461 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.57e-05/0.6318, allocations: 59.94 kB / 0.561 GB, free: 5.402 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.929e-05/0.6318, allocations: 100 kB / 0.5611 GB, free: 5.305 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001777/0.6336, allocations: 0.8892 MB / 0.5619 GB, free: 4.398 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003001/0.6366, allocations: 1.624 MB / 0.5635 GB, free: 2.891 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006739/0.6434, allocations: 8.455 MB / 0.5718 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002927/0.6463, allocations: 419.6 kB / 0.5722 GB, free: 9.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004084/0.6467, allocations: 364 kB / 0.5725 GB, free: 9.375 MB / 426.7 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.002327/0.649, allocations: 0.6325 MB / 0.5732 GB, free: 8.852 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008977/0.6499, allocations: 0.6568 MB / 0.5738 GB, free: 8.191 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005375/0.6553, allocations: 3.8 MB / 0.5775 GB, free: 4.367 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/0.6553, allocations: 43.94 kB / 0.5776 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.6553, allocations: 12 kB / 0.5776 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.488e-05/0.6553, allocations: 23.91 kB / 0.5776 GB, free: 4.289 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1915/0.8468, allocations: 11.81 MB / 0.5891 GB, free: 98.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.8468, allocations: 3.875 kB / 0.5891 GB, free: 98.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001954/0.8488, allocations: 0.7686 MB / 0.5899 GB, free: 98.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00173/0.8505, allocations: 0.744 MB / 0.5906 GB, free: 97.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002401/0.8507, allocations: 87.83 kB / 0.5907 GB, free: 97.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005623/0.8564, allocations: 7.994 MB / 0.5985 GB, free: 92.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.8564, allocations: 10.3 kB / 0.5985 GB, free: 92.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00739/0.8638, allocations: 4.766 MB / 0.6032 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001715/0.8655, allocations: 0.9441 MB / 0.6041 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004045/0.8659, allocations: 78.42 kB / 0.6041 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.8671, allocations: 227.2 kB / 0.6044 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000405/0.8675, allocations: 292.4 kB / 0.6046 GB, free: 91.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001774/0.8677, allocations: 117.2 kB / 0.6048 GB, free: 91.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002934/0.8706, allocations: 2.163 MB / 0.6069 GB, free: 91.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.8706, allocations: 0 / 0.6069 GB, free: 91.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005313/0.876, allocations: 1.931 MB / 0.6088 GB, free: 91.62 MB / 426.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%), (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.000504/0.8765, allocations: 269 kB / 0.609 GB, free: 91.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006368/0.8828, allocations: 4.751 MB / 0.6136 GB, free: 90.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.8828, allocations: 6.656 kB / 0.6137 GB, free: 90.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002341/0.8852, allocations: 2.324 MB / 0.6159 GB, free: 90.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003238/0.8884, allocations: 1.296 MB / 0.6172 GB, free: 90.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02258/0.911, allocations: 17.66 MB / 0.6344 GB, free: 82.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002287/0.9133, allocations: 3.104 MB / 0.6375 GB, free: 80.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003386/0.9167, allocations: 1.843 MB / 0.6393 GB, free: 79.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008376/0.9175, allocations: 409.1 kB / 0.6397 GB, free: 79.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.234e-06/0.9175, allocations: 3.562 kB / 0.6397 GB, free: 79.3 MB / 426.7 MB Notification: Performance of Templates: time 0.07996/0.9975, allocations: 68.08 MB / 0.7061 GB, free: 15.96 MB / 426.7 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.525761140044779]