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.001449/0.001449, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.001616/0.001616, allocations: 161.7 kB / 24.26 MB, free: 176 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 1.464/1.464, allocations: 177.2 MB / 204.6 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 178] 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.432e-06/1.432e-06, allocations: 0 / 272.3 MB, free: 1.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.182e-05/2.325e-05, allocations: 2.312 kB / 272.4 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1429/0.143, allocations: 26.64 MB / 299 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.1589, allocations: 8.612 MB / 307.6 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004594/0.1634, allocations: 226.1 kB / 307.8 MB, free: 9.914 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.1737, allocations: 4.858 MB / 312.7 MB, free: 7.031 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007925/0.1816, allocations: 3.121 MB / 315.8 MB, free: 4.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003601/0.1852, allocations: 1.592 MB / 317.4 MB, free: 3.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01097/0.1962, allocations: 9.191 MB / 326.6 MB, free: 12.03 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01604/0.2122, allocations: 9.111 MB / 335.7 MB, free: 2.816 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0118/0.224, allocations: 6.364 MB / 342.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008169/0.2322, allocations: 4.085 MB / 346.2 MB, free: 8.348 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002567/0.2348, allocations: 1.168 MB / 347.3 MB, free: 7.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004469/0.2392, allocations: 1.534 MB / 348.9 MB, free: 5.645 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002991/0.2422, allocations: 2.462 MB / 351.3 MB, free: 3.176 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005941/0.2482, allocations: 3.15 MB / 354.5 MB, free: 16 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02111/0.2693, allocations: 16.05 MB / 370.5 MB, free: 15.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2693, allocations: 0 / 370.5 MB, free: 15.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2693, allocations: 0 / 370.5 MB, free: 15.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003762/0.2697, allocations: 0 / 370.5 MB, free: 15.91 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.0302/0.2999, allocations: 9.806 MB / 380.3 MB, free: 6.023 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.2999, allocations: 12.03 kB / 380.3 MB, free: 6.012 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03275/0.3327, allocations: 6.496 MB / 386.8 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01311/0.3458, allocations: 5.328 MB / 392.2 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007383/0.3465, allocations: 0.5299 MB / 392.7 MB, free: 9.555 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002725/0.3492, allocations: 0.7108 MB / 393.4 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0299/0.3791, allocations: 11.58 MB / 405 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005222/0.3797, allocations: 11.95 kB / 405 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002615/0.3823, allocations: 300 kB / 405.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006861/0.383, allocations: 450.9 kB / 405.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02724/0.4102, allocations: 10.81 MB / 416.5 MB, free: 1.555 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1776/0.5878, allocations: 33.49 MB / 450 MB, free: 96.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/0.5983, allocations: 7.488 MB / 457.5 MB, free: 95.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002955/0.6013, allocations: 2.458 MB / 460 MB, free: 94.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01039/0.6117, allocations: 6.945 MB / 466.9 MB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.6117, allocations: 59.8 kB / 467 MB, free: 91.56 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 3.897e-06/0.6117, allocations: 0 / 467 MB, free: 91.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.01673/0.6284, allocations: 10.37 MB / 477.3 MB, free: 86.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001501/0.6299, allocations: 1.872 MB / 479.2 MB, free: 84.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004329/0.6343, allocations: 3.637 MB / 482.9 MB, free: 82.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.6344, allocations: 61.7 kB / 482.9 MB, free: 82.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.6357, allocations: 3.68 MB / 486.6 MB, free: 78.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000438/0.6362, allocations: 0.8642 MB / 487.5 MB, free: 78.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/0.6372, allocations: 0.9535 MB / 488.4 MB, free: 77.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.073e-05/0.6372, allocations: 309.1 kB / 488.7 MB, free: 76.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.6393, allocations: 1.895 MB / 490.6 MB, free: 74.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002831/0.6421, allocations: 4.446 MB / 495.1 MB, free: 69.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005244/0.6474, allocations: 6.801 MB / 0.4901 GB, free: 61.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-05/0.6474, allocations: 28 kB / 0.4901 GB, free: 61.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009342/0.6568, allocations: 7.216 MB / 0.4972 GB, free: 53.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.6568, allocations: 44.62 kB / 0.4972 GB, free: 53.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.283e-05/0.6569, allocations: 87.94 kB / 0.4973 GB, free: 53.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002394/0.6593, allocations: 0.9062 MB / 0.4982 GB, free: 52.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003308/0.6626, allocations: 1.127 MB / 0.4993 GB, free: 51.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00582/0.6684, allocations: 5.433 MB / 0.5046 GB, free: 46.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/0.6721, allocations: 315.4 kB / 0.5049 GB, free: 45.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000478/0.6725, allocations: 276 kB / 0.5051 GB, free: 45.71 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.00333/0.6759, allocations: 2.522 MB / 0.5076 GB, free: 43.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000931/0.6768, allocations: 457.7 kB / 0.508 GB, free: 42.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006479/0.6833, allocations: 4.23 MB / 0.5122 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.6833, allocations: 24 kB / 0.5122 GB, free: 38.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.6833, allocations: 8 kB / 0.5122 GB, free: 38.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.6833, allocations: 11.95 kB / 0.5122 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01939/0.7027, allocations: 13.13 MB / 0.525 GB, free: 25.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.496e-05/0.7027, allocations: 8 kB / 0.525 GB, free: 25.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/0.7045, allocations: 488.1 kB / 0.5255 GB, free: 24.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002927/0.7075, allocations: 0.8607 MB / 0.5264 GB, free: 23.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003622/0.7078, allocations: 75.91 kB / 0.5264 GB, free: 23.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007458/0.7153, allocations: 7.164 MB / 0.5334 GB, free: 16.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001311/0.7166, allocations: 1.818 MB / 0.5352 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009179/0.7258, allocations: 6.796 MB / 0.5418 GB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001871/0.7276, allocations: 0.7277 MB / 0.5425 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009246/0.7286, allocations: 63.98 kB / 0.5426 GB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002223/0.7308, allocations: 163.9 kB / 0.5428 GB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004632/0.7312, allocations: 241.2 kB / 0.543 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002192/0.7315, allocations: 87.97 kB / 0.5431 GB, free: 6.047 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004346/0.7358, allocations: 2.276 MB / 0.5453 GB, free: 3.785 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.7358, allocations: 0 / 0.5453 GB, free: 3.785 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009173/0.745, allocations: 1.285 MB / 0.5466 GB, free: 2.5 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.0009707/0.746, allocations: 238.2 kB / 0.5468 GB, free: 2.262 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01339/0.7593, allocations: 4.825 MB / 0.5515 GB, free: 13.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.332e-05/0.7594, allocations: 4.375 kB / 0.5515 GB, free: 13.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007131/0.7665, allocations: 2.188 MB / 0.5536 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008271/0.7748, allocations: 0.8879 MB / 0.5545 GB, free: 10.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03704/0.8118, allocations: 12.65 MB / 0.5668 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008281/0.8201, allocations: 4.031 MB / 0.5708 GB, free: 9.398 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004712/0.8248, allocations: 1.322 MB / 0.5721 GB, free: 8.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/0.8259, allocations: 296.4 kB / 0.5724 GB, free: 7.777 MB / 410.7 MB Notification: Performance of SimCode: time 1.372e-06/0.8259, allocations: 0 / 0.5724 GB, free: 7.777 MB / 410.7 MB Notification: Performance of Templates: time 0.1959/1.022, allocations: 48.23 MB / 0.6195 GB, free: 109.7 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.02730734704528]