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.0009786/0.0009786, allocations: 80.8 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.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.0009477/0.0009477, allocations: 173.9 kB / 24.92 MB, free: 9.18 MB / 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.8682/0.8682, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.573e-06/1.573e-06, allocations: 0 / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.028e-05/1.185e-05, allocations: 6.312 kB / 273.5 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1385/0.1385, allocations: 39.23 MB / 312.7 MB, free: 7.574 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01898/0.1575, allocations: 11.72 MB / 324.4 MB, free: 14.69 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004736/0.1623, allocations: 382.2 kB / 324.8 MB, free: 14.56 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00938/0.1716, allocations: 9.348 MB / 334.2 MB, free: 5.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006995/0.1786, allocations: 3.775 MB / 337.9 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003604/0.1822, allocations: 2.467 MB / 340.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01115/0.1934, allocations: 14 MB / 354.4 MB, free: 1.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01936/0.2127, allocations: 17.89 MB / 372.3 MB, free: 15.16 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01021/0.223, allocations: 10.95 MB / 383.2 MB, free: 4.191 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007446/0.2304, allocations: 7.68 MB / 390.9 MB, free: 12.5 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00228/0.2327, allocations: 1.977 MB / 392.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002558/0.2352, allocations: 2.378 MB / 395.3 MB, free: 8.141 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002149/0.2374, allocations: 4.157 MB / 399.4 MB, free: 3.973 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004031/0.2414, allocations: 5.251 MB / 404.7 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.2517, allocations: 12.84 MB / 417.5 MB, free: 1.832 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2517, allocations: 0 / 417.5 MB, free: 1.832 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2517, allocations: 0 / 417.5 MB, free: 1.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001676/0.2519, allocations: 4 kB / 417.5 MB, free: 1.828 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.01859/0.2705, allocations: 15.01 MB / 432.5 MB, free: 2.703 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2705, allocations: 12.03 kB / 432.5 MB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2234/0.4939, allocations: 6.446 MB / 439 MB, free: 76.58 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008461/0.5023, allocations: 4.536 MB / 443.5 MB, free: 76.22 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000475/0.5028, allocations: 0.9316 MB / 444.5 MB, free: 76.19 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001312/0.5041, allocations: 1.232 MB / 445.7 MB, free: 76.18 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.5144, allocations: 9.894 MB / 455.6 MB, free: 75.22 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001896/0.5146, allocations: 19.28 kB / 455.6 MB, free: 75.21 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007764/0.5154, allocations: 0.5031 MB / 456.1 MB, free: 75.21 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004046/0.5158, allocations: 0.663 MB / 456.8 MB, free: 75.19 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006094/0.5219, allocations: 4.775 MB / 461.5 MB, free: 73.82 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03066/0.5526, allocations: 37.84 MB / 499.4 MB, free: 40.02 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005912/0.5585, allocations: 6.247 MB / 0.4938 GB, free: 33.95 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001339/0.5598, allocations: 1.313 MB / 0.4951 GB, free: 32.68 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005757/0.5656, allocations: 4.316 MB / 0.4993 GB, free: 28.67 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.5656, allocations: 85.34 kB / 0.4994 GB, free: 28.57 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 4.588e-06/0.5656, allocations: 0 / 0.4994 GB, free: 28.57 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01222/0.5778, allocations: 8.402 MB / 0.5076 GB, free: 20.68 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.5779, allocations: 94.58 kB / 0.5077 GB, free: 20.57 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0019/0.5798, allocations: 3.49 MB / 0.5111 GB, free: 17.79 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001614/0.5799, allocations: 93.7 kB / 0.5112 GB, free: 17.69 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/0.581, allocations: 5.254 MB / 0.5163 GB, free: 12.62 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004846/0.5815, allocations: 1.451 MB / 0.5177 GB, free: 11.25 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000989/0.5825, allocations: 1.269 MB / 0.5189 GB, free: 10.11 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.034e-05/0.5825, allocations: 305.1 kB / 0.5192 GB, free: 9.805 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009186/0.5834, allocations: 0.8857 MB / 0.5201 GB, free: 8.918 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.5848, allocations: 3.776 MB / 0.5238 GB, free: 3.922 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003153/0.588, allocations: 5.326 MB / 0.529 GB, free: 13.73 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-05/0.588, allocations: 32 kB / 0.529 GB, free: 13.7 MB / 394.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.004955/0.593, allocations: 4.654 MB / 0.5336 GB, free: 9.68 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.593, allocations: 48.81 kB / 0.5336 GB, free: 9.633 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-05/0.5931, allocations: 104 kB / 0.5337 GB, free: 9.531 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.5945, allocations: 0.8064 MB / 0.5345 GB, free: 8.723 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002647/0.5971, allocations: 1.491 MB / 0.5359 GB, free: 7.352 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004256/0.6014, allocations: 6.013 MB / 0.5418 GB, free: 1.23 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.6034, allocations: 287.8 kB / 0.5421 GB, free: 0.9492 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003013/0.6037, allocations: 300 kB / 0.5424 GB, free: 0.6562 MB / 394.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.001797/0.6055, allocations: 0.5976 MB / 0.543 GB, free: 172 kB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006018/0.6061, allocations: 439.5 kB / 0.5434 GB, free: 15.74 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003359/0.6095, allocations: 2.79 MB / 0.5461 GB, free: 12.95 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.6095, allocations: 42.73 kB / 0.5461 GB, free: 12.91 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.6095, allocations: 8 kB / 0.5462 GB, free: 12.9 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.19e-05/0.6095, allocations: 23.92 kB / 0.5462 GB, free: 12.88 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008686/0.6182, allocations: 7.073 MB / 0.5531 GB, free: 6.5 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.6182, allocations: 4 kB / 0.5531 GB, free: 6.496 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/0.6197, allocations: 0.6448 MB / 0.5537 GB, free: 5.887 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001206/0.6209, allocations: 0.6655 MB / 0.5544 GB, free: 5.219 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/0.621, allocations: 87.97 kB / 0.5545 GB, free: 5.133 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003747/0.6248, allocations: 5.625 MB / 0.5599 GB, free: 15.36 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.6248, allocations: 7.656 kB / 0.56 GB, free: 15.35 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003984/0.6288, allocations: 3.435 MB / 0.5633 GB, free: 11.89 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009822/0.6298, allocations: 0.589 MB / 0.5639 GB, free: 11.3 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003741/0.6301, allocations: 72 kB / 0.564 GB, free: 11.23 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000918/0.631, allocations: 116 kB / 0.5641 GB, free: 11.12 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003191/0.6314, allocations: 285.5 kB / 0.5643 GB, free: 10.85 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/0.6315, allocations: 83.97 kB / 0.5644 GB, free: 10.77 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.001329/0.6328, allocations: 1.631 MB / 0.566 GB, free: 9.34 MB / 426.8 MB Notification: Performance of sort global known variables: time 4e-08/0.6328, allocations: 0 / 0.566 GB, free: 9.34 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004034/0.6369, allocations: 1.918 MB / 0.5679 GB, free: 7.422 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%), (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.000371/0.6373, allocations: 260.2 kB / 0.5681 GB, free: 7.207 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.003702/0.641, allocations: 3.74 MB / 0.5718 GB, free: 3.812 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 0.000114/0.6411, allocations: 79.94 kB / 0.5719 GB, free: 3.727 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001687/0.6428, allocations: 1.809 MB / 0.5736 GB, free: 1.992 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002596/0.6454, allocations: 1.29 MB / 0.5749 GB, free: 0.7578 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1331/0.7785, allocations: 17.3 MB / 0.5918 GB, free: 102.9 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001988/0.7805, allocations: 2.282 MB / 0.594 GB, free: 102.6 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002569/0.7831, allocations: 0.8494 MB / 0.5948 GB, free: 102.4 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002021/0.7851, allocations: 1.202 MB / 0.596 GB, free: 102.4 MB / 426.8 MB Notification: Performance of SimCode: time 1.734e-06/0.7851, allocations: 3.344 kB / 0.596 GB, free: 102.4 MB / 426.8 MB Notification: Performance of Templates: time 0.08853/0.8736, allocations: 74.77 MB / 0.669 GB, free: 44.04 MB / 426.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.090895836241543]