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_OpenCircuit.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.001399/0.001399, allocations: 79.91 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.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.001319/0.001319, 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.9404/0.9404, allocations: 173.3 MB / 201.1 MB, free: 9.332 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_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 3.938 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.61e-05/2.789e-05, allocations: 6.25 kB / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1361/0.1361, allocations: 29.95 MB / 298 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01274/0.1489, allocations: 8.56 MB / 306.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00244/0.1513, allocations: 220.5 kB / 306.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005187/0.1565, allocations: 5.215 MB / 312 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004036/0.1605, allocations: 3.134 MB / 315.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001796/0.1623, allocations: 1.605 MB / 316.7 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00576/0.1681, allocations: 9.075 MB / 325.8 MB, free: 1.012 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008487/0.1766, allocations: 9.139 MB / 334.9 MB, free: 7.77 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005878/0.1824, allocations: 6.411 MB / 341.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004683/0.1871, allocations: 4.538 MB / 345.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001403/0.1885, allocations: 1.156 MB / 347 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.1904, allocations: 1.515 MB / 348.5 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001488/0.1918, allocations: 2.501 MB / 351 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002181/0.194, allocations: 3.169 MB / 354.2 MB, free: 4.441 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006015/0.2, allocations: 7.755 MB / 362 MB, free: 12.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2, allocations: 0 / 362 MB, free: 12.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2, allocations: 0 / 362 MB, free: 12.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.925e-05/0.2001, allocations: 0 / 362 MB, free: 12.66 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.01196/0.2121, allocations: 10.35 MB / 372.3 MB, free: 2.215 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2121, allocations: 20.84 kB / 372.3 MB, free: 2.195 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01471/0.2268, allocations: 6.601 MB / 378.9 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005192/0.232, allocations: 4.84 MB / 383.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002385/0.2322, allocations: 0.5337 MB / 384.3 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000711/0.233, allocations: 0.7108 MB / 385 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0086/0.2416, allocations: 6.376 MB / 391.4 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.2417, allocations: 11.95 kB / 391.4 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000475/0.2421, allocations: 292 kB / 391.7 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002765/0.2424, allocations: 454.9 kB / 392.1 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006542/0.249, allocations: 3.699 MB / 395.8 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0272/0.2762, allocations: 30.6 MB / 426.4 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006726/0.2829, allocations: 6.488 MB / 432.9 MB, free: 5.559 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.2844, allocations: 1.225 MB / 434.1 MB, free: 4.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1207/0.4051, allocations: 4.917 MB / 439.1 MB, free: 89.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.4052, allocations: 58.11 kB / 439.1 MB, free: 89.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 3.827e-06/0.4052, allocations: 0 / 439.1 MB, free: 89.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.01028/0.4155, allocations: 6.337 MB / 445.5 MB, free: 88.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001029/0.4165, allocations: 2.224 MB / 447.7 MB, free: 86.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003341/0.4198, allocations: 3.32 MB / 451 MB, free: 86.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.4199, allocations: 64.58 kB / 451.1 MB, free: 86.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001294/0.4212, allocations: 3.87 MB / 454.9 MB, free: 84.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00038/0.4216, allocations: 0.8807 MB / 455.8 MB, free: 84.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008175/0.4224, allocations: 1.025 MB / 456.8 MB, free: 84.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.998e-05/0.4224, allocations: 479.8 kB / 457.3 MB, free: 83.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009213/0.4234, allocations: 0.6478 MB / 458 MB, free: 83.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/0.4251, allocations: 4.39 MB / 462.3 MB, free: 78.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003206/0.4283, allocations: 5.526 MB / 467.9 MB, free: 74.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.899e-05/0.4283, allocations: 26.78 kB / 467.9 MB, free: 74.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.004869/0.4332, allocations: 4.599 MB / 472.5 MB, free: 73.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.4332, allocations: 41.25 kB / 472.5 MB, free: 73.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.685e-05/0.4333, allocations: 86.06 kB / 472.6 MB, free: 73.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/0.4345, allocations: 0.718 MB / 473.3 MB, free: 73.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/0.4365, allocations: 1.121 MB / 474.5 MB, free: 73.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002923/0.4394, allocations: 3.82 MB / 478.3 MB, free: 71.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.441, allocations: 313.2 kB / 478.6 MB, free: 71.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000216/0.4412, allocations: 268.6 kB / 478.8 MB, free: 71.84 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.001081/0.4423, allocations: 0.5224 MB / 479.4 MB, free: 71.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003834/0.4427, allocations: 461.8 kB / 479.8 MB, free: 71.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002812/0.4455, allocations: 2.464 MB / 482.3 MB, free: 71.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.4455, allocations: 25.91 kB / 482.3 MB, free: 71.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4455, allocations: 3.656 kB / 482.3 MB, free: 71.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.4455, allocations: 11.06 kB / 482.3 MB, free: 71.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009946/0.4555, allocations: 11.47 MB / 493.8 MB, free: 63.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.4555, allocations: 13.09 kB / 493.8 MB, free: 63.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000892/0.4564, allocations: 483.2 kB / 494.3 MB, free: 63.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/0.4576, allocations: 0.6708 MB / 494.9 MB, free: 63.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.4578, allocations: 67.75 kB / 495 MB, free: 63.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003481/0.4612, allocations: 5.736 MB / 0.489 GB, free: 57.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006849/0.4619, allocations: 2.191 MB / 0.4912 GB, free: 55.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003614/0.4655, allocations: 3.605 MB / 0.4947 GB, free: 51.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007071/0.4662, allocations: 0.6615 MB / 0.4953 GB, free: 51.08 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000257/0.4665, allocations: 59.7 kB / 0.4954 GB, free: 51.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007988/0.4673, allocations: 167.9 kB / 0.4955 GB, free: 50.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/0.4675, allocations: 232.8 kB / 0.4958 GB, free: 50.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-05/0.4676, allocations: 91.97 kB / 0.4958 GB, free: 50.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001374/0.469, allocations: 1.588 MB / 0.4974 GB, free: 48.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.469, allocations: 0 / 0.4974 GB, free: 48.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002579/0.4716, allocations: 1.285 MB / 0.4986 GB, free: 47.7 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.0003089/0.4719, allocations: 236.1 kB / 0.4989 GB, free: 47.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003074/0.475, allocations: 3.111 MB / 0.5019 GB, free: 44.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.475, allocations: 4.75 kB / 0.5019 GB, free: 44.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001399/0.4764, allocations: 1.629 MB / 0.5035 GB, free: 43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.4783, allocations: 0.8704 MB / 0.5044 GB, free: 42.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008943/0.4872, allocations: 10.88 MB / 0.515 GB, free: 31.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009324/0.4882, allocations: 1.765 MB / 0.5167 GB, free: 29.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001604/0.4898, allocations: 1.151 MB / 0.5178 GB, free: 28.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004445/0.4902, allocations: 284.5 kB / 0.5181 GB, free: 27.79 MB / 378.7 MB Notification: Performance of SimCode: time 8.92e-07/0.4902, allocations: 0 / 0.5181 GB, free: 27.79 MB / 378.7 MB Notification: Performance of Templates: time 0.05645/0.5466, allocations: 50.09 MB / 0.567 GB, free: 10.6 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.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.0.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.220821035094559]