Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009308/0.0009308, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009546/0.0009546, allocations: 166.1 kB / 24.82 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9423/0.9423, allocations: 177 MB / 205.1 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.986e-05/2.134e-05, allocations: 6.312 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1273/0.1273, allocations: 29.26 MB / 302.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.1431, allocations: 8.754 MB / 311.4 MB, free: 8.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005644/0.1487, allocations: 225.8 kB / 311.6 MB, free: 8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007046/0.1558, allocations: 5.073 MB / 316.7 MB, free: 4.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006814/0.1626, allocations: 3.118 MB / 319.8 MB, free: 2.168 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002515/0.1651, allocations: 1.608 MB / 321.4 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008024/0.1731, allocations: 9.204 MB / 330.6 MB, free: 8.863 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01024/0.1834, allocations: 9.124 MB / 339.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00707/0.1905, allocations: 6.426 MB / 346.2 MB, free: 9.203 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005339/0.1958, allocations: 4.565 MB / 350.7 MB, free: 4.629 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001953/0.1977, allocations: 1.156 MB / 351.9 MB, free: 3.473 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002587/0.2003, allocations: 1.538 MB / 353.4 MB, free: 1.934 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001766/0.2021, allocations: 2.497 MB / 355.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004064/0.2062, allocations: 3.181 MB / 359.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008524/0.2147, allocations: 7.778 MB / 366.9 MB, free: 4.438 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2147, allocations: 0 / 366.9 MB, free: 4.438 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2147, allocations: 0 / 366.9 MB, free: 4.438 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000298/0.215, allocations: 0 / 366.9 MB, free: 4.438 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.01495/0.2299, allocations: 9.904 MB / 376.8 MB, free: 10.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.23, allocations: 12.03 kB / 376.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01481/0.2448, allocations: 4.956 MB / 381.8 MB, free: 5.461 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006993/0.2518, allocations: 4.598 MB / 386.3 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003871/0.2522, allocations: 0.5338 MB / 386.9 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001481/0.2537, allocations: 0.7069 MB / 387.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009657/0.2633, allocations: 5.875 MB / 393.5 MB, free: 9.496 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001561/0.2635, allocations: 19.89 kB / 393.5 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005302/0.264, allocations: 296 kB / 393.8 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003017/0.2643, allocations: 443 kB / 394.2 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005907/0.2702, allocations: 2.941 MB / 397.1 MB, free: 5.801 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03479/0.305, allocations: 30.32 MB / 427.5 MB, free: 6.531 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005753/0.3107, allocations: 5.764 MB / 433.2 MB, free: 1.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00137/0.3121, allocations: 1.068 MB / 434.3 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1359/0.448, allocations: 4.828 MB / 439.1 MB, free: 86.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.617e-05/0.4481, allocations: 63.7 kB / 439.2 MB, free: 86.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 5.029e-06/0.4481, allocations: 3.375 kB / 439.2 MB, free: 86.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.0117/0.4598, allocations: 5.145 MB / 444.3 MB, free: 85.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001151/0.4609, allocations: 2.196 MB / 446.5 MB, free: 83.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003945/0.4649, allocations: 3.282 MB / 449.8 MB, free: 83.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.465, allocations: 65.08 kB / 449.9 MB, free: 83.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001783/0.4668, allocations: 3.904 MB / 453.8 MB, free: 81.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005075/0.4673, allocations: 0.8833 MB / 454.7 MB, free: 80.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.4684, allocations: 1.055 MB / 455.7 MB, free: 80.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.607e-05/0.4684, allocations: 480.6 kB / 456.2 MB, free: 80.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.4696, allocations: 0.5818 MB / 456.8 MB, free: 80.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002252/0.4718, allocations: 4.35 MB / 461.1 MB, free: 75.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003724/0.4756, allocations: 5.323 MB / 466.4 MB, free: 70.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-05/0.4756, allocations: 27.31 kB / 466.5 MB, free: 70.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.00608/0.4817, allocations: 4.254 MB / 470.7 MB, free: 70.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.738e-05/0.4818, allocations: 42.81 kB / 470.8 MB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001137/0.4819, allocations: 86.25 kB / 470.9 MB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/0.4835, allocations: 0.679 MB / 471.5 MB, free: 70.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002361/0.4858, allocations: 1.063 MB / 472.6 MB, free: 70.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/0.4892, allocations: 3.639 MB / 476.2 MB, free: 68.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00259/0.4918, allocations: 237.9 kB / 476.5 MB, free: 68.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/0.4921, allocations: 234.3 kB / 476.7 MB, free: 68.52 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.001603/0.4937, allocations: 0.508 MB / 477.2 MB, free: 68.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006413/0.4944, allocations: 460.5 kB / 477.7 MB, free: 68.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003427/0.4978, allocations: 2.234 MB / 479.9 MB, free: 67.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.4978, allocations: 28 kB / 479.9 MB, free: 67.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.4978, allocations: 4 kB / 479.9 MB, free: 67.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/0.4978, allocations: 11.34 kB / 479.9 MB, free: 67.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01227/0.5101, allocations: 11.24 MB / 491.2 MB, free: 59.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.5101, allocations: 14.25 kB / 491.2 MB, free: 59.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008267/0.5109, allocations: 414.3 kB / 491.6 MB, free: 59.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001248/0.5122, allocations: 0.6372 MB / 492.2 MB, free: 58.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.5123, allocations: 75.5 kB / 492.3 MB, free: 58.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003382/0.5157, allocations: 5.523 MB / 497.8 MB, free: 53.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007493/0.5164, allocations: 2.146 MB / 500 MB, free: 51.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003737/0.5202, allocations: 3.282 MB / 0.4915 GB, free: 47.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.5212, allocations: 0.621 MB / 0.4921 GB, free: 46.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002664/0.5215, allocations: 58.3 kB / 0.4921 GB, free: 46.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007726/0.5223, allocations: 95.94 kB / 0.4922 GB, free: 46.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/0.5226, allocations: 235.6 kB / 0.4924 GB, free: 46.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.5227, allocations: 75.97 kB / 0.4925 GB, free: 46.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00146/0.5241, allocations: 1.478 MB / 0.494 GB, free: 45.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.5241, allocations: 0 / 0.494 GB, free: 45.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003718/0.5278, allocations: 1.285 MB / 0.4952 GB, free: 43.89 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.0003625/0.5282, allocations: 243.2 kB / 0.4954 GB, free: 43.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003418/0.5316, allocations: 2.873 MB / 0.4982 GB, free: 41.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.78e-06/0.5316, allocations: 0 / 0.4982 GB, free: 41.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.5329, allocations: 1.514 MB / 0.4997 GB, free: 39.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/0.5351, allocations: 0.9029 MB / 0.5006 GB, free: 38.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.5469, allocations: 10.78 MB / 0.5111 GB, free: 27.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.5482, allocations: 1.778 MB / 0.5129 GB, free: 25.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001665/0.5498, allocations: 0.6048 MB / 0.5135 GB, free: 25.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001262/0.5511, allocations: 0.9625 MB / 0.5144 GB, free: 24.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.984e-06/0.5511, allocations: 4 kB / 0.5144 GB, free: 24.4 MB / 378.7 MB Notification: Performance of Templates: time 0.07022/0.6213, allocations: 52.96 MB / 0.5661 GB, free: 4.27 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.073530643247068]