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.000991/0.000991, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.00106/0.00106, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.8812/0.8812, allocations: 173.4 MB / 202.2 MB, free: 8.281 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.192e-06/1.192e-06, allocations: 0 / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.348e-05/1.467e-05, allocations: 5.266 kB / 269.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02717/0.02719, allocations: 38.61 MB / 307.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0184/0.04559, allocations: 10.83 MB / 318.7 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005622/0.05121, allocations: 377.9 kB / 319.1 MB, free: 7.758 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0106/0.06181, allocations: 9.059 MB / 328.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008469/0.07028, allocations: 3.758 MB / 331.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004097/0.07438, allocations: 2.408 MB / 334.3 MB, free: 8.469 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1378/0.2122, allocations: 13.89 MB / 348.2 MB, free: 18.75 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02379/0.236, allocations: 17.45 MB / 365.6 MB, free: 16.52 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01886/0.2548, allocations: 10.91 MB / 376.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01067/0.2655, allocations: 7.57 MB / 384.1 MB, free: 9.172 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004753/0.2702, allocations: 1.984 MB / 386.1 MB, free: 7.449 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006147/0.2764, allocations: 2.367 MB / 388.4 MB, free: 5.195 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003941/0.2803, allocations: 4.153 MB / 392.6 MB, free: 1.801 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01272/0.293, allocations: 5.45 MB / 398 MB, free: 13.72 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01897/0.312, allocations: 12.82 MB / 410.9 MB, free: 1.781 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.312, allocations: 0 / 410.9 MB, free: 1.781 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.312, allocations: 0 / 410.9 MB, free: 1.781 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004784/0.3125, allocations: 0 / 410.9 MB, free: 1.781 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03286/0.3454, allocations: 15.89 MB / 426.8 MB, free: 2.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3454, allocations: 8.031 kB / 426.8 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01775/0.3631, allocations: 6.378 MB / 433.1 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01192/0.3751, allocations: 7.432 MB / 440.6 MB, free: 5.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008737/0.3759, allocations: 0.9279 MB / 441.5 MB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00225/0.3782, allocations: 1.239 MB / 442.7 MB, free: 2.949 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/0.3936, allocations: 9.64 MB / 452.4 MB, free: 9.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002377/0.3939, allocations: 23.72 kB / 452.4 MB, free: 9.676 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009014/0.3948, allocations: 0.502 MB / 452.9 MB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004528/0.3952, allocations: 0.6543 MB / 453.6 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009272/0.4045, allocations: 4.333 MB / 457.9 MB, free: 4.191 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3036/0.7081, allocations: 48.46 MB / 0.4945 GB, free: 68.59 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007547/0.7156, allocations: 7.886 MB / 0.5022 GB, free: 68.16 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/0.7174, allocations: 1.487 MB / 0.5037 GB, free: 68.07 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008453/0.7259, allocations: 5.428 MB / 0.509 GB, free: 67.65 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.7259, allocations: 78.64 kB / 0.509 GB, free: 67.61 MB / 410.8 MB Notification: Performance of pre-optimization done (n=361): time 4.729e-06/0.7259, allocations: 0 / 0.509 GB, free: 67.61 MB / 410.8 MB Notification: Performance of matching and sorting (n=403): time 0.01522/0.7412, allocations: 8.836 MB / 0.5177 GB, free: 66.36 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.7412, allocations: 99.38 kB / 0.5177 GB, free: 66.29 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003928/0.7451, allocations: 4.533 MB / 0.5222 GB, free: 65.73 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003721/0.7455, allocations: 87.02 kB / 0.5223 GB, free: 65.7 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002303/0.7478, allocations: 6.112 MB / 0.5282 GB, free: 63.13 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008815/0.7487, allocations: 1.502 MB / 0.5297 GB, free: 62.21 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001286/0.75, allocations: 1.509 MB / 0.5312 GB, free: 62.07 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 7.101e-05/0.75, allocations: 476.8 kB / 0.5316 GB, free: 61.61 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.7511, allocations: 0.7553 MB / 0.5324 GB, free: 61.59 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00206/0.7531, allocations: 5.358 MB / 0.5376 GB, free: 55.96 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003816/0.7569, allocations: 6.849 MB / 0.5443 GB, free: 50.25 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-05/0.757, allocations: 29.28 kB / 0.5443 GB, free: 50.25 MB / 410.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.006772/0.7638, allocations: 5.736 MB / 0.5499 GB, free: 49.65 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/0.7638, allocations: 52.38 kB / 0.55 GB, free: 49.64 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.46e-05/0.7639, allocations: 102.9 kB / 0.5501 GB, free: 49.64 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/0.7654, allocations: 0.8586 MB / 0.5509 GB, free: 49.55 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002635/0.7681, allocations: 1.51 MB / 0.5524 GB, free: 49.54 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004759/0.7728, allocations: 8.174 MB / 0.5604 GB, free: 44.04 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003952/0.7768, allocations: 293.1 kB / 0.5606 GB, free: 43.99 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006459/0.7774, allocations: 309.8 kB / 0.5609 GB, free: 43.76 MB / 410.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.002752/0.7802, allocations: 0.6359 MB / 0.5616 GB, free: 43.41 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/0.7813, allocations: 0.6638 MB / 0.5622 GB, free: 42.8 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004175/0.7855, allocations: 3.374 MB / 0.5655 GB, free: 40.81 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.7855, allocations: 40 kB / 0.5655 GB, free: 40.77 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.7855, allocations: 12 kB / 0.5655 GB, free: 40.76 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/0.7856, allocations: 21.8 kB / 0.5656 GB, free: 40.76 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01421/0.7998, allocations: 8.948 MB / 0.5743 GB, free: 36.12 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.7998, allocations: 4 kB / 0.5743 GB, free: 36.12 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/0.8015, allocations: 0.6689 MB / 0.575 GB, free: 35.6 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001493/0.803, allocations: 0.6986 MB / 0.5756 GB, free: 35.12 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001942/0.8032, allocations: 88.84 kB / 0.5757 GB, free: 35.09 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004255/0.8074, allocations: 7.751 MB / 0.5833 GB, free: 28.43 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.8074, allocations: 7.656 kB / 0.5833 GB, free: 28.43 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005683/0.8131, allocations: 4.201 MB / 0.5874 GB, free: 25.02 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001907/0.815, allocations: 0.8642 MB / 0.5883 GB, free: 24.42 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005901/0.8156, allocations: 81.3 kB / 0.5883 GB, free: 24.4 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.8168, allocations: 115.2 kB / 0.5884 GB, free: 24.34 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/0.8172, allocations: 290 kB / 0.5887 GB, free: 24.06 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.8174, allocations: 87.98 kB / 0.5888 GB, free: 23.98 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.00198/0.8194, allocations: 1.978 MB / 0.5907 GB, free: 22.21 MB / 410.8 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8194, allocations: 0 / 0.5907 GB, free: 22.21 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.006156/0.8255, allocations: 1.926 MB / 0.5926 GB, free: 20.28 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.0006499/0.8262, allocations: 261.1 kB / 0.5929 GB, free: 20.06 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005977/0.8321, allocations: 4.363 MB / 0.5971 GB, free: 16.03 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.8321, allocations: 0 / 0.5971 GB, free: 16.03 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002434/0.8346, allocations: 2.14 MB / 0.5992 GB, free: 13.95 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004057/0.8386, allocations: 1.272 MB / 0.6005 GB, free: 12.71 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.026/0.8646, allocations: 17.51 MB / 0.6176 GB, free: 11.09 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004834/0.8695, allocations: 3.096 MB / 0.6206 GB, free: 7.957 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.00305/0.8725, allocations: 0.8453 MB / 0.6214 GB, free: 7.109 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002495/0.875, allocations: 1.322 MB / 0.6227 GB, free: 5.785 MB / 426.8 MB Notification: Performance of SimCode: time 2.394e-06/0.875, allocations: 0 / 0.6227 GB, free: 5.785 MB / 426.8 MB Notification: Performance of Templates: time 0.2408/1.116, allocations: 74.75 MB / 0.6957 GB, free: 92.05 MB / 442.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 -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.725299467332661]