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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=2000,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=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 114.5 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001335/0.001336, allocations: 187 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 51.92 kB / 328.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/0.08905, allocations: 46.62 MB / 375.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1928/0.2819, allocations: 30.23 MB / 405.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01921/0.3012, allocations: 8.643 MB / 414 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00754/0.3088, allocations: 169.7 kB / 414.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0129/0.3217, allocations: 4.907 MB / 419.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01043/0.3322, allocations: 2.937 MB / 422.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00512/0.3373, allocations: 1.619 MB / 423.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01277/0.3501, allocations: 8.704 MB / 432.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01972/0.3699, allocations: 12.83 MB / 445.2 MB, free: 9.473 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008767/0.3787, allocations: 4.238 MB / 449.4 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009585/0.3884, allocations: 4.737 MB / 454.2 MB, free: 480 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003597/0.392, allocations: 1.16 MB / 455.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005684/0.3977, allocations: 1.527 MB / 456.9 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003757/0.4015, allocations: 2.408 MB / 459.3 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008311/0.4098, allocations: 4.673 MB / 464 MB, free: 6.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01824/0.4281, allocations: 15.73 MB / 479.7 MB, free: 6.902 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4282, allocations: 0 / 479.7 MB, free: 6.902 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4282, allocations: 0 / 479.7 MB, free: 6.902 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004355/0.4286, allocations: 0 / 479.7 MB, free: 6.902 MB / 398.1 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.03135/0.46, allocations: 9.751 MB / 489.4 MB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.46, allocations: 8.031 kB / 489.4 MB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03009/0.4901, allocations: 5.274 MB / 494.7 MB, free: 7.758 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.5004, allocations: 4.691 MB / 499.4 MB, free: 2.984 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004964/0.5009, allocations: 0.5377 MB / 499.9 MB, free: 2.445 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002451/0.5033, allocations: 0.7029 MB / 0.4889 GB, free: 1.742 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02559/0.5289, allocations: 11.32 MB / 0.5 GB, free: 6.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003534/0.5293, allocations: 11.91 kB / 0.5 GB, free: 6.328 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001975/0.5313, allocations: 300 kB / 0.5003 GB, free: 6.035 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005246/0.5319, allocations: 450.9 kB / 0.5007 GB, free: 5.594 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02175/0.5536, allocations: 10.81 MB / 0.5113 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0595/0.6132, allocations: 37.58 MB / 0.548 GB, free: 4.059 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.195/0.8082, allocations: 28.09 MB / 0.5754 GB, free: 115.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00441/0.8127, allocations: 2.669 MB / 0.578 GB, free: 115.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01339/0.8261, allocations: 7.898 MB / 0.5857 GB, free: 111.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.8261, allocations: 68.5 kB / 0.5858 GB, free: 111.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.368e-06/0.8261, allocations: 0 / 0.5858 GB, free: 111.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.01899/0.8451, allocations: 10.36 MB / 0.5959 GB, free: 107.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001797/0.847, allocations: 2.008 MB / 0.5978 GB, free: 105.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00582/0.8528, allocations: 3.827 MB / 0.6016 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005286/0.8534, allocations: 62.83 kB / 0.6016 GB, free: 103.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002083/0.8555, allocations: 3.551 MB / 0.6051 GB, free: 101.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001043/0.8565, allocations: 0.8268 MB / 0.6059 GB, free: 100.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/0.8579, allocations: 0.9561 MB / 0.6068 GB, free: 100 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.816e-05/0.8579, allocations: 303.8 kB / 0.6071 GB, free: 99.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002782/0.8607, allocations: 1.892 MB / 0.609 GB, free: 98.98 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004475/0.8652, allocations: 4.392 MB / 0.6133 GB, free: 94.89 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008468/0.8737, allocations: 6.79 MB / 0.6199 GB, free: 89.43 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.229e-05/0.8738, allocations: 23.59 kB / 0.6199 GB, free: 89.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01154/0.8854, allocations: 6.986 MB / 0.6268 GB, free: 86.23 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.31e-05/0.8855, allocations: 44 kB / 0.6268 GB, free: 86.19 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/0.8856, allocations: 84 kB / 0.6269 GB, free: 86.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002588/0.8882, allocations: 0.7388 MB / 0.6276 GB, free: 85.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005279/0.8935, allocations: 1.113 MB / 0.6287 GB, free: 84.56 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008782/0.9023, allocations: 5.644 MB / 0.6342 GB, free: 78.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005552/0.9079, allocations: 311.1 kB / 0.6345 GB, free: 78.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006299/0.9085, allocations: 269.7 kB / 0.6347 GB, free: 78.35 MB / 478.1 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.005085/0.9136, allocations: 2.522 MB / 0.6372 GB, free: 75.81 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008967/0.9146, allocations: 395.1 kB / 0.6376 GB, free: 75.42 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006161/0.9207, allocations: 4.272 MB / 0.6418 GB, free: 71.13 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.841e-05/0.9208, allocations: 24 kB / 0.6418 GB, free: 71.11 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.9208, allocations: 8 kB / 0.6418 GB, free: 71.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-05/0.9208, allocations: 11.95 kB / 0.6418 GB, free: 71.09 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01982/0.9407, allocations: 14.28 MB / 0.6557 GB, free: 56.61 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/0.9407, allocations: 8.938 kB / 0.6558 GB, free: 56.61 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001685/0.9424, allocations: 479.2 kB / 0.6562 GB, free: 56.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.9442, allocations: 0.6892 MB / 0.6569 GB, free: 55.44 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.9444, allocations: 71.97 kB / 0.657 GB, free: 55.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00726/0.9516, allocations: 7.485 MB / 0.6643 GB, free: 47.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001367/0.953, allocations: 1.959 MB / 0.6662 GB, free: 45.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008439/0.9615, allocations: 6.738 MB / 0.6728 GB, free: 38.48 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/0.9632, allocations: 0.7967 MB / 0.6735 GB, free: 37.66 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/0.9638, allocations: 63.98 kB / 0.6736 GB, free: 37.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00179/0.9656, allocations: 167.6 kB / 0.6738 GB, free: 37.44 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/0.966, allocations: 217.4 kB / 0.674 GB, free: 37.22 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.9662, allocations: 91.92 kB / 0.6741 GB, free: 37.13 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002982/0.9691, allocations: 2.513 MB / 0.6765 GB, free: 34.64 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9692, allocations: 0 / 0.6765 GB, free: 34.64 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004233/0.9734, allocations: 1.293 MB / 0.6778 GB, free: 33.35 MB / 478.1 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.0004291/0.9738, allocations: 234.1 kB / 0.678 GB, free: 33.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006375/0.9802, allocations: 5.167 MB / 0.683 GB, free: 27.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.9803, allocations: 0 / 0.683 GB, free: 27.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003237/0.9835, allocations: 2.421 MB / 0.6854 GB, free: 25.45 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005325/0.9889, allocations: 0.988 MB / 0.6864 GB, free: 24.47 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/1.006, allocations: 12.31 MB / 0.6984 GB, free: 11.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003513/1.01, allocations: 4.496 MB / 0.7028 GB, free: 7.438 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003394/1.013, allocations: 1.36 MB / 0.7041 GB, free: 6.074 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007408/1.014, allocations: 299.4 kB / 0.7044 GB, free: 5.781 MB / 478.1 MB Notification: Performance of SimCode: time 1.423e-06/1.014, allocations: 0 / 0.7044 GB, free: 5.781 MB / 478.1 MB Notification: Performance of Templates: time 0.2664/1.28, allocations: 53.32 MB / 0.7565 GB, free: 158.1 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches