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.0009949/0.0009949, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.001082/0.001082, allocations: 141.2 kB / 24.89 MB, free: 9.227 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.9116/0.9116, allocations: 173.3 MB / 201.5 MB, free: 9.227 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.743e-06/1.743e-06, allocations: 0 / 268.6 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.563e-05/1.737e-05, allocations: 2.312 kB / 268.6 MB, free: 6.121 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1341/0.1341, allocations: 38.68 MB / 307.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02076/0.1549, allocations: 11.44 MB / 318.7 MB, free: 5.703 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00577/0.1606, allocations: 376.1 kB / 319.1 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008935/0.1696, allocations: 9.261 MB / 328.3 MB, free: 14.62 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008325/0.1779, allocations: 3.75 MB / 332.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003743/0.1816, allocations: 2.422 MB / 334.5 MB, free: 8.426 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01095/0.1926, allocations: 13.9 MB / 348.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01819/0.2108, allocations: 17.85 MB / 366.2 MB, free: 8.422 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009965/0.2207, allocations: 10.94 MB / 377.2 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007656/0.2284, allocations: 7.649 MB / 384.8 MB, free: 5.797 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00257/0.231, allocations: 1.98 MB / 386.8 MB, free: 3.816 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002729/0.2337, allocations: 2.378 MB / 389.2 MB, free: 1.438 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002131/0.2358, allocations: 4.161 MB / 393.4 MB, free: 13.27 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004885/0.2407, allocations: 5.247 MB / 398.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009716/0.2504, allocations: 12.81 MB / 411.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2504, allocations: 0 / 411.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2504, allocations: 0 / 411.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001521/0.2506, allocations: 0 / 411.4 MB, free: 11.16 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.01723/0.2678, allocations: 14.96 MB / 426.4 MB, free: 12.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.2678, allocations: 8.922 kB / 426.4 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01763/0.2855, allocations: 6.513 MB / 432.9 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006546/0.292, allocations: 4.507 MB / 437.4 MB, free: 0.957 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004309/0.2924, allocations: 0.935 MB / 438.3 MB, free: 20 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.21/0.5025, allocations: 1.223 MB / 439.6 MB, free: 82.12 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01301/0.5155, allocations: 9.864 MB / 449.4 MB, free: 81.17 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001979/0.5157, allocations: 28.42 kB / 449.5 MB, free: 81.17 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007518/0.5165, allocations: 0.5058 MB / 450 MB, free: 81.17 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003618/0.5168, allocations: 0.6536 MB / 450.6 MB, free: 81.14 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006489/0.5233, allocations: 4.75 MB / 455.4 MB, free: 80.8 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03117/0.5545, allocations: 37.76 MB / 493.1 MB, free: 54.91 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005588/0.5601, allocations: 6.2 MB / 499.3 MB, free: 48.94 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.5612, allocations: 1.309 MB / 0.4889 GB, free: 47.67 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005453/0.5667, allocations: 4.263 MB / 0.4931 GB, free: 43.71 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.5667, allocations: 73.41 kB / 0.4931 GB, free: 43.63 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.147e-06/0.5667, allocations: 0 / 0.4931 GB, free: 43.63 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01206/0.5788, allocations: 8.359 MB / 0.5013 GB, free: 35.9 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.5788, allocations: 95.45 kB / 0.5014 GB, free: 35.8 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/0.5808, allocations: 3.48 MB / 0.5048 GB, free: 33.16 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.581, allocations: 93.7 kB / 0.5049 GB, free: 33.06 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.5821, allocations: 5.239 MB / 0.51 GB, free: 28.27 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005024/0.5826, allocations: 1.46 MB / 0.5114 GB, free: 26.89 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009817/0.5836, allocations: 1.264 MB / 0.5126 GB, free: 25.76 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.008e-05/0.5836, allocations: 304.4 kB / 0.5129 GB, free: 25.46 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009426/0.5846, allocations: 0.8822 MB / 0.5138 GB, free: 24.57 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.5861, allocations: 3.777 MB / 0.5175 GB, free: 19.58 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003124/0.5892, allocations: 5.316 MB / 0.5227 GB, free: 13.39 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.452e-05/0.5893, allocations: 32 kB / 0.5227 GB, free: 13.36 MB / 378.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.004855/0.5941, allocations: 4.638 MB / 0.5272 GB, free: 9.363 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.798e-05/0.5942, allocations: 48 kB / 0.5273 GB, free: 9.316 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.235e-05/0.5942, allocations: 104 kB / 0.5274 GB, free: 9.215 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.5956, allocations: 0.8061 MB / 0.5282 GB, free: 8.406 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002853/0.5985, allocations: 1.597 MB / 0.5297 GB, free: 6.93 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003784/0.6022, allocations: 6.023 MB / 0.5356 GB, free: 0.7891 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002287/0.6045, allocations: 300.8 kB / 0.5359 GB, free: 0.4961 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002697/0.6048, allocations: 296 kB / 0.5362 GB, free: 212 kB / 378.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.002143/0.6069, allocations: 0.604 MB / 0.5368 GB, free: 15.71 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006381/0.6076, allocations: 437.7 kB / 0.5372 GB, free: 15.29 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00362/0.6112, allocations: 2.805 MB / 0.5399 GB, free: 12.48 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.6112, allocations: 43.98 kB / 0.54 GB, free: 12.44 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.6112, allocations: 8 kB / 0.54 GB, free: 12.43 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.312e-05/0.6112, allocations: 23.92 kB / 0.54 GB, free: 12.41 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009759/0.621, allocations: 7.039 MB / 0.5469 GB, free: 6.062 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.621, allocations: 4.875 kB / 0.5469 GB, free: 6.059 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/0.6228, allocations: 0.7245 MB / 0.5476 GB, free: 5.371 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.6241, allocations: 0.6583 MB / 0.5482 GB, free: 4.711 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.6242, allocations: 83.97 kB / 0.5483 GB, free: 4.629 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004181/0.6284, allocations: 5.654 MB / 0.5538 GB, free: 14.84 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.6284, allocations: 4 kB / 0.5538 GB, free: 14.83 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004283/0.6327, allocations: 3.422 MB / 0.5572 GB, free: 11.39 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.634, allocations: 0.5862 MB / 0.5578 GB, free: 10.8 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003556/0.6343, allocations: 76.88 kB / 0.5578 GB, free: 10.73 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009353/0.6352, allocations: 108 kB / 0.5579 GB, free: 10.62 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003874/0.6356, allocations: 294.2 kB / 0.5582 GB, free: 10.34 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.6358, allocations: 83.97 kB / 0.5583 GB, free: 10.25 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001584/0.6374, allocations: 1.616 MB / 0.5599 GB, free: 8.844 MB / 410.8 MB Notification: Performance of sort global known variables: time 8e-08/0.6374, allocations: 0 / 0.5599 GB, free: 8.844 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.004827/0.6422, allocations: 1.918 MB / 0.5617 GB, free: 6.926 MB / 410.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.0004336/0.6426, allocations: 257.7 kB / 0.562 GB, free: 6.711 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.004353/0.647, allocations: 3.717 MB / 0.5656 GB, free: 3.34 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001243/0.6471, allocations: 88 kB / 0.5657 GB, free: 3.246 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001851/0.649, allocations: 1.799 MB / 0.5675 GB, free: 1.523 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/0.6517, allocations: 1.259 MB / 0.5687 GB, free: 312 kB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1571/0.8089, allocations: 17.34 MB / 0.5856 GB, free: 110.5 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003221/0.8121, allocations: 2.283 MB / 0.5879 GB, free: 110.2 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002823/0.8149, allocations: 0.8464 MB / 0.5887 GB, free: 110 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002298/0.8172, allocations: 1.184 MB / 0.5898 GB, free: 110 MB / 426.8 MB Notification: Performance of SimCode: time 1.202e-06/0.8172, allocations: 0 / 0.5898 GB, free: 110 MB / 426.8 MB Notification: Performance of Templates: time 0.1002/0.9174, allocations: 74.01 MB / 0.6621 GB, free: 61.52 MB / 426.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 -s gbode -gbm=radauIIA3 -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.210624156985432]