Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009431/0.0009431, allocations: 85.08 kB / 23 MB, free: 1.504 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.001377/0.001377, allocations: 173.1 kB / 26.39 MB, free: 8 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9701/0.9701, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 3.938 kB / 252.3 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.584e-05/2.752e-05, allocations: 2.312 kB / 252.3 MB, free: 7.207 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03075/0.03078, allocations: 28.6 MB / 280.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01678/0.04756, allocations: 8.526 MB / 289.4 MB, free: 1.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00613/0.05369, allocations: 195 kB / 289.6 MB, free: 1.738 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008508/0.0622, allocations: 5.05 MB / 294.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008177/0.07037, allocations: 3.068 MB / 297.7 MB, free: 9.578 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003621/0.07399, allocations: 1.605 MB / 299.3 MB, free: 7.973 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0102/0.08419, allocations: 9.077 MB / 308.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01336/0.09755, allocations: 9.11 MB / 317.5 MB, free: 5.652 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01127/0.1088, allocations: 6.415 MB / 323.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006117/0.1149, allocations: 4.545 MB / 328.5 MB, free: 10.67 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002635/0.1176, allocations: 1.156 MB / 329.6 MB, free: 9.516 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003713/0.1213, allocations: 1.519 MB / 331.2 MB, free: 7.996 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002084/0.1234, allocations: 2.501 MB / 333.7 MB, free: 5.488 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003762/0.1271, allocations: 3.165 MB / 336.8 MB, free: 2.316 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.1383, allocations: 7.747 MB / 344.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.1383, allocations: 0 / 344.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1383, allocations: 4 kB / 344.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003431/0.1386, allocations: 0 / 344.6 MB, free: 10.54 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.01514/0.1538, allocations: 9.865 MB / 354.4 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1538, allocations: 8.031 kB / 354.4 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1653/0.3191, allocations: 5.011 MB / 359.5 MB, free: 60.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007148/0.3262, allocations: 4.079 MB / 363.5 MB, free: 59.95 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000321/0.3266, allocations: 0.5281 MB / 364.1 MB, free: 59.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001225/0.3278, allocations: 0.7164 MB / 364.8 MB, free: 59.92 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008262/0.336, allocations: 5.841 MB / 370.6 MB, free: 59.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001869/0.3362, allocations: 20.06 kB / 370.6 MB, free: 59.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005375/0.3368, allocations: 304.3 kB / 370.9 MB, free: 59.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003184/0.3371, allocations: 445.3 kB / 371.4 MB, free: 59.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004951/0.342, allocations: 2.891 MB / 374.3 MB, free: 58.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02704/0.3691, allocations: 30.18 MB / 404.4 MB, free: 34.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004983/0.3741, allocations: 5.696 MB / 410.1 MB, free: 29.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.3753, allocations: 1.069 MB / 411.2 MB, free: 28.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005848/0.3811, allocations: 4.7 MB / 415.9 MB, free: 24.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.3812, allocations: 63.38 kB / 416 MB, free: 24.22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=217): time 3.356e-06/0.3812, allocations: 0 / 416 MB, free: 24.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=233): time 0.008257/0.3894, allocations: 5.135 MB / 421.1 MB, free: 19.31 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001101/0.3905, allocations: 2.18 MB / 423.3 MB, free: 17.01 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002871/0.3934, allocations: 3.265 MB / 426.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.3935, allocations: 69.7 kB / 426.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001342/0.3948, allocations: 3.891 MB / 430.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000432/0.3953, allocations: 0.89 MB / 431.4 MB, free: 9.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008247/0.3961, allocations: 1.046 MB / 432.4 MB, free: 8.625 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.054e-05/0.3961, allocations: 488.7 kB / 432.9 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008583/0.397, allocations: 0.5753 MB / 433.5 MB, free: 7.566 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001881/0.3989, allocations: 4.341 MB / 437.8 MB, free: 1.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003865/0.4027, allocations: 5.311 MB / 443.1 MB, free: 11.21 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-05/0.4028, allocations: 24 kB / 443.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.005221/0.408, allocations: 4.235 MB / 447.4 MB, free: 7.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.239e-05/0.408, allocations: 40 kB / 447.4 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.452e-05/0.4081, allocations: 91.98 kB / 447.5 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.4095, allocations: 0.6917 MB / 448.2 MB, free: 6.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001954/0.4114, allocations: 1.047 MB / 449.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003451/0.4149, allocations: 3.643 MB / 452.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.4168, allocations: 235.6 kB / 453.1 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002235/0.417, allocations: 232 kB / 453.4 MB, free: 1.617 MB / 346.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.001451/0.4185, allocations: 0.5246 MB / 453.9 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005074/0.419, allocations: 445.6 kB / 454.3 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003043/0.422, allocations: 2.226 MB / 456.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.422, allocations: 24 kB / 456.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.4221, allocations: 8 kB / 456.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/0.4221, allocations: 19.69 kB / 456.6 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/0.4341, allocations: 11.2 MB / 467.8 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.4342, allocations: 12 kB / 467.8 MB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009021/0.4351, allocations: 411.8 kB / 468.2 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/0.4364, allocations: 0.6374 MB / 468.9 MB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.4365, allocations: 71.97 kB / 468.9 MB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004315/0.4408, allocations: 5.529 MB / 474.5 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001082/0.4419, allocations: 2.14 MB / 476.6 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00413/0.446, allocations: 3.254 MB / 479.9 MB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009887/0.447, allocations: 0.6233 MB / 480.5 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000282/0.4473, allocations: 63.98 kB / 480.5 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008038/0.4481, allocations: 91.97 kB / 480.6 MB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003047/0.4484, allocations: 225 kB / 480.8 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/0.4485, allocations: 67.98 kB / 480.9 MB, free: 6.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001445/0.4499, allocations: 1.467 MB / 482.4 MB, free: 5.027 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4499, allocations: 0 / 482.4 MB, free: 5.027 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003876/0.4538, allocations: 1.281 MB / 483.7 MB, free: 3.746 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.0003624/0.4542, allocations: 233.6 kB / 483.9 MB, free: 3.543 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003542/0.4577, allocations: 2.878 MB / 486.8 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4577, allocations: 0 / 486.8 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.4592, allocations: 1.528 MB / 488.3 MB, free: 15.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/0.4613, allocations: 0.8769 MB / 489.2 MB, free: 14.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/0.4753, allocations: 10.77 MB / 499.9 MB, free: 3.621 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001427/0.4767, allocations: 1.769 MB / 0.49 GB, free: 1.816 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0016/0.4783, allocations: 0.6045 MB / 0.4905 GB, free: 1.207 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/0.4797, allocations: 0.943 MB / 0.4915 GB, free: 268 kB / 394.7 MB Notification: Performance of SimCode: time 1.613e-06/0.4797, allocations: 4 kB / 0.4915 GB, free: 264 kB / 394.7 MB Notification: Performance of Templates: time 0.2152/0.6949, allocations: 53.16 MB / 0.5434 GB, free: 76.88 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.483217167668045]