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.0009405/0.0009405, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0008903/0.0008903, allocations: 147.1 kB / 24.9 MB, free: 8.727 MB / 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.8612/0.8612, allocations: 173.4 MB / 201.5 MB, free: 8.746 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.693e-06/1.693e-06, allocations: 0 / 268.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/2.004e-05, allocations: 6.109 kB / 268.5 MB, free: 6 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1248/0.1248, allocations: 28.69 MB / 297.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.1382, allocations: 8.936 MB / 306.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003607/0.1418, allocations: 218.2 kB / 306.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006841/0.1487, allocations: 5.207 MB / 311.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006264/0.1549, allocations: 3.15 MB / 314.7 MB, free: 8.609 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002289/0.1572, allocations: 1.59 MB / 316.3 MB, free: 7.344 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00591/0.1631, allocations: 9.097 MB / 325.4 MB, free: 1.289 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008303/0.1714, allocations: 9.388 MB / 334.8 MB, free: 7.766 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006344/0.1778, allocations: 6.426 MB / 341.2 MB, free: 1.328 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0043/0.1821, allocations: 4.588 MB / 345.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001221/0.1833, allocations: 1.156 MB / 346.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001861/0.1851, allocations: 1.511 MB / 348.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001322/0.1865, allocations: 2.497 MB / 351 MB, free: 7.559 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004983/0.1915, allocations: 3.169 MB / 354.1 MB, free: 4.383 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.2031, allocations: 7.754 MB / 361.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.2031, allocations: 0 / 361.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2031, allocations: 0 / 361.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003657/0.2035, allocations: 0 / 361.9 MB, free: 12.6 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.01476/0.2182, allocations: 9.328 MB / 371.2 MB, free: 3.191 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.2183, allocations: 12.92 kB / 371.2 MB, free: 3.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/0.2326, allocations: 5.264 MB / 376.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005818/0.2384, allocations: 2.768 MB / 379.3 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003424/0.2388, allocations: 0.5298 MB / 379.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00124/0.24, allocations: 0.7147 MB / 380.5 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008961/0.249, allocations: 5.932 MB / 386.4 MB, free: 3.723 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001291/0.2491, allocations: 15.94 kB / 386.4 MB, free: 3.707 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005067/0.2496, allocations: 300 kB / 386.7 MB, free: 3.414 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002986/0.2499, allocations: 454.9 kB / 387.2 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004942/0.2548, allocations: 3.006 MB / 390.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02972/0.2846, allocations: 23.17 MB / 413.4 MB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005005/0.2896, allocations: 4.366 MB / 417.7 MB, free: 3.496 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.2906, allocations: 0.9369 MB / 418.7 MB, free: 2.551 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006314/0.2969, allocations: 3.7 MB / 422.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.297, allocations: 56.56 kB / 422.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 5.27e-06/0.297, allocations: 0 / 422.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.01054/0.3075, allocations: 4.688 MB / 427.1 MB, free: 10.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001219/0.3088, allocations: 1.603 MB / 428.7 MB, free: 8.344 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002964/0.3117, allocations: 2.607 MB / 431.3 MB, free: 5.742 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004269/0.3121, allocations: 65.7 kB / 431.4 MB, free: 5.672 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001658/0.3138, allocations: 3.331 MB / 434.7 MB, free: 2.301 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005886/0.3144, allocations: 0.86 MB / 435.6 MB, free: 1.434 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001042/0.3154, allocations: 0.9063 MB / 436.5 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.097e-05/0.3155, allocations: 305.1 kB / 436.8 MB, free: 220 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1224/0.4379, allocations: 0.6753 MB / 437.4 MB, free: 95.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002086/0.44, allocations: 3.135 MB / 440.6 MB, free: 92.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003226/0.4432, allocations: 4.103 MB / 444.7 MB, free: 89.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.036e-05/0.4433, allocations: 25.12 kB / 444.7 MB, free: 89.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.00516/0.4485, allocations: 3.474 MB / 448.2 MB, free: 89.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/0.4485, allocations: 46.97 kB / 448.2 MB, free: 89.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-05/0.4486, allocations: 86.5 kB / 448.3 MB, free: 89.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.4498, allocations: 0.6532 MB / 449 MB, free: 89.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/0.4516, allocations: 1.037 MB / 450 MB, free: 89.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002387/0.454, allocations: 2.867 MB / 452.9 MB, free: 88.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.4559, allocations: 240 kB / 453.1 MB, free: 88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002582/0.4562, allocations: 229.8 kB / 453.3 MB, free: 88 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.001339/0.4575, allocations: 484.4 kB / 453.8 MB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000462/0.458, allocations: 281.5 kB / 454.1 MB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002294/0.4603, allocations: 1.883 MB / 456 MB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.4603, allocations: 24.09 kB / 456 MB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.4603, allocations: 7.812 kB / 456 MB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.4603, allocations: 12.52 kB / 456 MB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009733/0.47, allocations: 7.798 MB / 463.8 MB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.4701, allocations: 9.156 kB / 463.8 MB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008209/0.4709, allocations: 400.9 kB / 464.2 MB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00138/0.4723, allocations: 0.7711 MB / 465 MB, free: 86.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.4724, allocations: 65.72 kB / 465 MB, free: 86.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002892/0.4753, allocations: 4.19 MB / 469.2 MB, free: 84.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005569/0.4758, allocations: 1.545 MB / 470.8 MB, free: 82.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/0.4786, allocations: 2.683 MB / 473.5 MB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008335/0.4795, allocations: 428.4 kB / 473.9 MB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003142/0.4798, allocations: 62.61 kB / 473.9 MB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007468/0.4805, allocations: 87.3 kB / 474 MB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.4808, allocations: 234.6 kB / 474.3 MB, free: 81.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.4809, allocations: 67.69 kB / 474.3 MB, free: 81.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001062/0.482, allocations: 1.195 MB / 475.5 MB, free: 81.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.482, allocations: 0 / 475.5 MB, free: 81.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003061/0.485, allocations: 1.284 MB / 476.8 MB, free: 80.45 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.0003213/0.4853, allocations: 213.6 kB / 477 MB, free: 80.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002878/0.4882, allocations: 2.55 MB / 479.6 MB, free: 78.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.912e-05/0.4883, allocations: 67.94 kB / 479.6 MB, free: 78.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.4895, allocations: 1.269 MB / 480.9 MB, free: 77.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.4917, allocations: 0.8667 MB / 481.8 MB, free: 76.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.5031, allocations: 10.53 MB / 492.3 MB, free: 66.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/0.5042, allocations: 1.344 MB / 493.6 MB, free: 65.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001692/0.5059, allocations: 0.5928 MB / 494.2 MB, free: 64.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/0.5072, allocations: 0.8388 MB / 495.1 MB, free: 64.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.023e-06/0.5072, allocations: 0 / 495.1 MB, free: 64.14 MB / 378.7 MB Notification: Performance of Templates: time 0.06004/0.5672, allocations: 52.43 MB / 0.5347 GB, free: 12.61 MB / 378.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.036517145112157]