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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002006/0.002006, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001017, allocations: 112.9 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009006/0.0009006, allocations: 51.92 kB / 356.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.185, allocations: 50.44 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02213/0.2072, allocations: 30.43 MB / 437.5 MB, free: 13.23 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01732/0.2247, allocations: 8.8 MB / 446.3 MB, free: 4.418 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005264/0.23, allocations: 183.4 kB / 446.5 MB, free: 4.238 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01108/0.2411, allocations: 4.592 MB / 451.1 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009263/0.2504, allocations: 2.736 MB / 453.8 MB, free: 12.89 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004236/0.2546, allocations: 1.523 MB / 455.3 MB, free: 11.38 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01026/0.2649, allocations: 9.205 MB / 464.5 MB, free: 2.141 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01402/0.2789, allocations: 10.32 MB / 474.9 MB, free: 7.727 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005411/0.2844, allocations: 3.625 MB / 478.5 MB, free: 4.09 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005821/0.2903, allocations: 4.487 MB / 483 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002125/0.2924, allocations: 0.7305 MB / 483.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003427/0.2958, allocations: 1.125 MB / 484.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002425/0.2983, allocations: 1.97 MB / 486.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006217/0.3045, allocations: 4.212 MB / 491 MB, free: 7.523 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01508/0.3196, allocations: 15.43 MB / 0.4946 GB, free: 8.043 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.3197, allocations: 3.984 kB / 0.4946 GB, free: 8.039 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3197, allocations: 4 kB / 0.4946 GB, free: 8.035 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003245/0.32, allocations: 0 / 0.4946 GB, free: 8.035 MB / 378.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.1899/0.5099, allocations: 9.804 MB / 0.5042 GB, free: 81.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.5099, allocations: 7.906 kB / 0.5042 GB, free: 81.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02576/0.5357, allocations: 5.255 MB / 0.5093 GB, free: 80.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01017/0.5459, allocations: 4.959 MB / 0.5141 GB, free: 77.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004417/0.5464, allocations: 0.5321 MB / 0.5147 GB, free: 76.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002332/0.5487, allocations: 0.7106 MB / 0.5153 GB, free: 76.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01672/0.5654, allocations: 11.33 MB / 0.5264 GB, free: 67.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/0.5656, allocations: 23.77 kB / 0.5264 GB, free: 67.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000721/0.5664, allocations: 299.4 kB / 0.5267 GB, free: 67.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002765/0.5666, allocations: 443 kB / 0.5271 GB, free: 66.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0156/0.5823, allocations: 10.82 MB / 0.5377 GB, free: 56.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04521/0.6275, allocations: 38.87 MB / 0.5757 GB, free: 16.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01733/0.6449, allocations: 28.29 MB / 0.6033 GB, free: 76 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004424/0.6493, allocations: 2.663 MB / 0.6059 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01514/0.6645, allocations: 8.452 MB / 0.6142 GB, free: 4.785 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/0.6646, allocations: 56.56 kB / 0.6142 GB, free: 4.719 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 3.537e-06/0.6646, allocations: 0 / 0.6142 GB, free: 4.719 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.02058/0.6852, allocations: 10.37 MB / 0.6243 GB, free: 10.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00199/0.6872, allocations: 1.905 MB / 0.6262 GB, free: 8.258 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007001/0.6942, allocations: 3.834 MB / 0.6299 GB, free: 4.395 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000488/0.6947, allocations: 69.7 kB / 0.63 GB, free: 4.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00265/0.6974, allocations: 3.559 MB / 0.6335 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001107/0.6985, allocations: 0.8258 MB / 0.6343 GB, free: 15.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001979/0.7005, allocations: 0.9568 MB / 0.6352 GB, free: 14.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.725e-05/0.7006, allocations: 305.1 kB / 0.6355 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003003/0.7036, allocations: 1.891 MB / 0.6374 GB, free: 12.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004214/0.7079, allocations: 4.4 MB / 0.6417 GB, free: 7.078 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007763/0.7156, allocations: 6.78 MB / 0.6483 GB, free: 15.08 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.141e-05/0.7157, allocations: 28 kB / 0.6483 GB, free: 15.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01191/0.7276, allocations: 6.986 MB / 0.6551 GB, free: 8.051 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.952e-05/0.7278, allocations: 44 kB / 0.6552 GB, free: 8.008 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/0.7279, allocations: 84 kB / 0.6552 GB, free: 7.926 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002047/0.73, allocations: 0.7487 MB / 0.656 GB, free: 7.168 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003638/0.7336, allocations: 1.119 MB / 0.6571 GB, free: 6.047 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007085/0.7407, allocations: 5.233 MB / 0.6622 GB, free: 0.6797 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003935/0.7447, allocations: 303.1 kB / 0.6625 GB, free: 392 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007459/0.7455, allocations: 276 kB / 0.6627 GB, free: 116 kB / 458.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.004668/0.7501, allocations: 2.528 MB / 0.6652 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001089/0.7512, allocations: 387.2 kB / 0.6656 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008319/0.7596, allocations: 4.283 MB / 0.6698 GB, free: 8.875 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.7596, allocations: 29.12 kB / 0.6698 GB, free: 8.848 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.602e-05/0.7596, allocations: 8 kB / 0.6698 GB, free: 8.84 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.585e-05/0.7597, allocations: 15.94 kB / 0.6698 GB, free: 8.824 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2001/0.9598, allocations: 14.29 MB / 0.6838 GB, free: 159.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.721e-05/0.9599, allocations: 11.16 kB / 0.6838 GB, free: 159.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001741/0.9616, allocations: 488.2 kB / 0.6842 GB, free: 159.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001984/0.9636, allocations: 0.6842 MB / 0.6849 GB, free: 159.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001938/0.9638, allocations: 72.2 kB / 0.685 GB, free: 159.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007263/0.9711, allocations: 6.946 MB / 0.6918 GB, free: 154.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001472/0.9726, allocations: 1.868 MB / 0.6936 GB, free: 153.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02112/0.9937, allocations: 16.17 MB / 0.7094 GB, free: 144.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/0.9953, allocations: 0.792 MB / 0.7101 GB, free: 144.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004101/0.9957, allocations: 63.25 kB / 0.7102 GB, free: 144.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001748/0.9974, allocations: 165.2 kB / 0.7104 GB, free: 144.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004055/0.9979, allocations: 224.6 kB / 0.7106 GB, free: 144.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/0.998, allocations: 87.25 kB / 0.7107 GB, free: 144.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003194/1.001, allocations: 2.517 MB / 0.7131 GB, free: 143.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.001, allocations: 3.609 kB / 0.7131 GB, free: 143.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004693/1.006, allocations: 1.595 MB / 0.7147 GB, free: 142.8 MB / 474.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.0004937/1.006, allocations: 232.7 kB / 0.7149 GB, free: 142.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006602/1.013, allocations: 5.133 MB / 0.7199 GB, free: 138.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/1.013, allocations: 4 kB / 0.7199 GB, free: 138.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003123/1.016, allocations: 2.399 MB / 0.7223 GB, free: 135.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005397/1.022, allocations: 0.9359 MB / 0.7232 GB, free: 134.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02117/1.043, allocations: 17.33 MB / 0.7401 GB, free: 117.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004465/1.047, allocations: 4.571 MB / 0.7446 GB, free: 112.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004069/1.051, allocations: 1.399 MB / 0.7459 GB, free: 111.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008288/1.052, allocations: 303.4 kB / 0.7462 GB, free: 111 MB / 474.7 MB Notification: Performance of SimCode: time 6.01e-07/1.052, allocations: 4 kB / 0.7462 GB, free: 111 MB / 474.7 MB Notification: Performance of Templates: time 0.08442/1.137, allocations: 57.87 MB / 0.8027 GB, free: 53.54 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches