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_OpenCircuit.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.001008/0.001008, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001373/0.001373, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9558/0.9558, allocations: 177.1 MB / 205 MB, free: 5.598 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_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 273 MB, free: 1.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.989e-05/3.175e-05, allocations: 2.312 kB / 273 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1454/0.1455, allocations: 30.59 MB / 303.6 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.1608, allocations: 8.799 MB / 312.4 MB, free: 7.777 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005086/0.1659, allocations: 223 kB / 312.6 MB, free: 7.711 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006896/0.1728, allocations: 5.224 MB / 317.8 MB, free: 4.301 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00764/0.1805, allocations: 3.135 MB / 321 MB, free: 1.797 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002951/0.1834, allocations: 1.618 MB / 322.6 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009736/0.1931, allocations: 9.201 MB / 331.8 MB, free: 8.121 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01081/0.204, allocations: 9.128 MB / 340.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008071/0.212, allocations: 6.415 MB / 347.3 MB, free: 8.469 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005853/0.2179, allocations: 4.476 MB / 351.8 MB, free: 3.984 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002752/0.2206, allocations: 1.16 MB / 353 MB, free: 2.824 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004864/0.2255, allocations: 1.538 MB / 354.5 MB, free: 1.285 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002203/0.2277, allocations: 2.509 MB / 357 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005391/0.2331, allocations: 3.177 MB / 360.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009615/0.2427, allocations: 7.793 MB / 368 MB, free: 3.766 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2427, allocations: 0 / 368 MB, free: 3.766 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2427, allocations: 0 / 368 MB, free: 3.766 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003312/0.243, allocations: 0 / 368 MB, free: 3.766 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.01851/0.2616, allocations: 10.4 MB / 378.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.2616, allocations: 8.031 kB / 378.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01653/0.2781, allocations: 6.504 MB / 384.9 MB, free: 2.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007596/0.2857, allocations: 4.882 MB / 389.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003293/0.2861, allocations: 0.5377 MB / 390.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001155/0.2872, allocations: 0.7108 MB / 391 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01088/0.2981, allocations: 6.407 MB / 397.4 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001429/0.2982, allocations: 15.94 kB / 397.4 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005032/0.2987, allocations: 296 kB / 397.7 MB, free: 5.656 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003327/0.2991, allocations: 446.9 kB / 398.2 MB, free: 5.219 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008612/0.3077, allocations: 3.741 MB / 401.9 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03718/0.3449, allocations: 30.71 MB / 432.6 MB, free: 1.812 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.151/0.4959, allocations: 6.505 MB / 439.1 MB, free: 84.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002705/0.4986, allocations: 1.237 MB / 440.4 MB, free: 84.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00825/0.5068, allocations: 5.021 MB / 445.4 MB, free: 83.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.391e-05/0.5069, allocations: 59.95 kB / 445.4 MB, free: 83.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 4.539e-06/0.5069, allocations: 3.656 kB / 445.4 MB, free: 83.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.01189/0.5188, allocations: 6.382 MB / 451.8 MB, free: 82.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001347/0.5201, allocations: 2.23 MB / 454.1 MB, free: 80.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004446/0.5246, allocations: 3.337 MB / 457.4 MB, free: 80.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.5247, allocations: 69.33 kB / 457.5 MB, free: 80.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001845/0.5266, allocations: 3.87 MB / 461.3 MB, free: 78.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000601/0.5272, allocations: 0.8823 MB / 462.2 MB, free: 77.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001159/0.5283, allocations: 1.031 MB / 463.2 MB, free: 77.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.47e-05/0.5284, allocations: 480.7 kB / 463.7 MB, free: 77.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.5297, allocations: 0.6525 MB / 464.4 MB, free: 77.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002551/0.5323, allocations: 4.4 MB / 468.8 MB, free: 72.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004474/0.5367, allocations: 5.532 MB / 474.3 MB, free: 67.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-05/0.5368, allocations: 25.38 kB / 474.3 MB, free: 67.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.007562/0.5444, allocations: 4.614 MB / 478.9 MB, free: 67.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.684e-05/0.5444, allocations: 46.09 kB / 479 MB, free: 67.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/0.5445, allocations: 85.47 kB / 479.1 MB, free: 67.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/0.5464, allocations: 0.7107 MB / 479.8 MB, free: 67.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002562/0.549, allocations: 1.126 MB / 480.9 MB, free: 66.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004087/0.5531, allocations: 3.81 MB / 484.7 MB, free: 62.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002815/0.5559, allocations: 318.1 kB / 485 MB, free: 62.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002398/0.5561, allocations: 275.6 kB / 485.3 MB, free: 62.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001356/0.5575, allocations: 0.5251 MB / 485.8 MB, free: 62.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000507/0.558, allocations: 455.8 kB / 486.3 MB, free: 61.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003249/0.5612, allocations: 2.463 MB / 488.7 MB, free: 59.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.5612, allocations: 27.7 kB / 488.8 MB, free: 59.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.5612, allocations: 8 kB / 488.8 MB, free: 59.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.5613, allocations: 11.25 kB / 488.8 MB, free: 59.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/0.5736, allocations: 11.51 MB / 0.4886 GB, free: 49.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.5736, allocations: 8 kB / 0.4886 GB, free: 49.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009799/0.5746, allocations: 486.5 kB / 0.489 GB, free: 48.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.576, allocations: 0.6635 MB / 0.4897 GB, free: 48.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.5761, allocations: 75.97 kB / 0.4898 GB, free: 48.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004029/0.5802, allocations: 5.755 MB / 0.4954 GB, free: 42.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008405/0.581, allocations: 2.174 MB / 0.4975 GB, free: 39.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004633/0.5856, allocations: 3.629 MB / 0.501 GB, free: 36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/0.587, allocations: 0.673 MB / 0.5017 GB, free: 35.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002629/0.5873, allocations: 63.98 kB / 0.5018 GB, free: 35.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008808/0.5882, allocations: 159.8 kB / 0.5019 GB, free: 35.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000307/0.5885, allocations: 238.9 kB / 0.5021 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.5886, allocations: 87.98 kB / 0.5022 GB, free: 34.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001912/0.5905, allocations: 1.598 MB / 0.5038 GB, free: 33.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5905, allocations: 4 kB / 0.5038 GB, free: 33.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003439/0.5939, allocations: 1.289 MB / 0.505 GB, free: 31.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003829/0.5943, allocations: 236.6 kB / 0.5053 GB, free: 31.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004192/0.5985, allocations: 3.12 MB / 0.5083 GB, free: 28.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.5985, allocations: 7.562 kB / 0.5083 GB, free: 28.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.6004, allocations: 1.628 MB / 0.5099 GB, free: 27.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/0.6028, allocations: 0.8913 MB / 0.5108 GB, free: 26.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/0.6185, allocations: 10.86 MB / 0.5214 GB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/0.6198, allocations: 1.766 MB / 0.5231 GB, free: 13.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002157/0.6219, allocations: 1.147 MB / 0.5242 GB, free: 12.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005075/0.6224, allocations: 308.4 kB / 0.5245 GB, free: 11.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.783e-06/0.6224, allocations: 0 / 0.5245 GB, free: 11.98 MB / 378.7 MB Notification: Performance of Templates: time 0.06555/0.688, allocations: 48.25 MB / 0.5717 GB, free: 12.62 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_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_OpenCircuit/SMPM_OpenCircuit.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: 4.723101653158665]