Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_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=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008409/0.0008409, allocations: 179.7 kB / 16.71 MB, free: 4.938 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009138/0.0009139, allocations: 95.62 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002297/0.0002299, allocations: 11.94 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.1949, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.01848/0.2134, allocations: 26.78 MB / 431.4 MB, free: 4.441 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01478/0.2283, allocations: 10.54 MB / 441.9 MB, free: 9.359 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004124/0.2324, allocations: 171.4 kB / 442.1 MB, free: 9.191 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004395/0.2368, allocations: 1.567 MB / 443.7 MB, free: 7.617 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008069/0.2449, allocations: 3.678 MB / 447.3 MB, free: 3.688 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004751/0.2497, allocations: 1.961 MB / 449.3 MB, free: 1.578 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0102/0.2599, allocations: 8.999 MB / 458.3 MB, free: 8.539 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01908/0.279, allocations: 14.82 MB / 473.1 MB, free: 8.902 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004292/0.2833, allocations: 3.129 MB / 476.2 MB, free: 5.762 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005363/0.2887, allocations: 3.8 MB / 480 MB, free: 1.945 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001381/0.2901, allocations: 476 kB / 480.5 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00248/0.2926, allocations: 0.816 MB / 481.3 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001298/0.2939, allocations: 1.58 MB / 482.9 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004178/0.2981, allocations: 3.792 MB / 486.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01274/0.3108, allocations: 14.86 MB / 0.4898 GB, free: 12.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3109, allocations: 0 / 0.4898 GB, free: 12.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.3109, allocations: 4 kB / 0.4898 GB, free: 12.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003993/0.3113, allocations: 3.938 kB / 0.4898 GB, free: 12.34 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.02215/0.3334, allocations: 8.176 MB / 0.4978 GB, free: 4.074 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3335, allocations: 8.031 kB / 0.4978 GB, free: 4.066 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2051/0.5386, allocations: 5.265 MB / 0.5029 GB, free: 85.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008855/0.5475, allocations: 4.975 MB / 0.5078 GB, free: 83.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003879/0.5479, allocations: 0.5371 MB / 0.5083 GB, free: 82.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002329/0.5503, allocations: 0.7078 MB / 0.509 GB, free: 82.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02185/0.5721, allocations: 11.26 MB / 0.52 GB, free: 77.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000176/0.5723, allocations: 19.69 kB / 0.52 GB, free: 77.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007662/0.5731, allocations: 302 kB / 0.5203 GB, free: 76.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003061/0.5734, allocations: 443.8 kB / 0.5207 GB, free: 76.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01712/0.5906, allocations: 10.77 MB / 0.5313 GB, free: 66.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05088/0.6415, allocations: 38.13 MB / 0.5685 GB, free: 27.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01404/0.6556, allocations: 28.06 MB / 0.5959 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004284/0.6599, allocations: 2.637 MB / 0.5985 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/0.6741, allocations: 7.946 MB / 0.6062 GB, free: 1.242 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/0.6742, allocations: 60.5 kB / 0.6063 GB, free: 1.172 MB / 394.7 MB Notification: Performance of pre-optimization done (n=217): time 3.697e-06/0.6742, allocations: 0 / 0.6063 GB, free: 1.172 MB / 394.7 MB Notification: Performance of matching and sorting (n=233): time 0.01913/0.6934, allocations: 10.34 MB / 0.6164 GB, free: 6.789 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002141/0.6956, allocations: 1.915 MB / 0.6183 GB, free: 4.719 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007283/0.7029, allocations: 3.795 MB / 0.622 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003873/0.7033, allocations: 61.7 kB / 0.622 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00252/0.7058, allocations: 3.553 MB / 0.6255 GB, free: 13.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00104/0.7069, allocations: 0.8348 MB / 0.6263 GB, free: 12.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003851/0.7073, allocations: 100 kB / 0.6264 GB, free: 12.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003668/0.7077, allocations: 0.4928 MB / 0.6269 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003095/0.7108, allocations: 1.876 MB / 0.6287 GB, free: 10 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004759/0.7155, allocations: 4.372 MB / 0.633 GB, free: 4.391 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008516/0.7241, allocations: 6.753 MB / 0.6396 GB, free: 12.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.65e-05/0.7242, allocations: 24 kB / 0.6396 GB, free: 12.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01231/0.7365, allocations: 6.949 MB / 0.6464 GB, free: 5.438 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.465e-05/0.7366, allocations: 42.5 kB / 0.6464 GB, free: 5.398 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001313/0.7368, allocations: 91.98 kB / 0.6465 GB, free: 5.309 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/0.7388, allocations: 0.7322 MB / 0.6472 GB, free: 4.566 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003558/0.7424, allocations: 1.123 MB / 0.6483 GB, free: 3.441 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006749/0.7491, allocations: 5.216 MB / 0.6534 GB, free: 14.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003696/0.7528, allocations: 311.1 kB / 0.6537 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000623/0.7535, allocations: 276 kB / 0.654 GB, free: 13.52 MB / 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.004247/0.7577, allocations: 2.518 MB / 0.6564 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008864/0.7586, allocations: 387.2 kB / 0.6568 GB, free: 10.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007376/0.766, allocations: 4.267 MB / 0.661 GB, free: 6.312 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/0.7661, allocations: 24 kB / 0.661 GB, free: 6.289 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.7661, allocations: 8 kB / 0.661 GB, free: 6.281 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.17e-05/0.7661, allocations: 11.95 kB / 0.661 GB, free: 6.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1783/0.9444, allocations: 14.27 MB / 0.675 GB, free: 144.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.9444, allocations: 11.84 kB / 0.675 GB, free: 144.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/0.9461, allocations: 474.4 kB / 0.6754 GB, free: 144.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/0.9479, allocations: 0.6935 MB / 0.6761 GB, free: 144.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000214/0.9481, allocations: 67.92 kB / 0.6762 GB, free: 144.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006786/0.9549, allocations: 6.933 MB / 0.6829 GB, free: 140 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001429/0.9564, allocations: 1.858 MB / 0.6848 GB, free: 138.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008176/0.9646, allocations: 6.715 MB / 0.6913 GB, free: 135.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/0.9661, allocations: 0.7967 MB / 0.6921 GB, free: 134.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004633/0.9666, allocations: 63.38 kB / 0.6921 GB, free: 134.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.9681, allocations: 166.8 kB / 0.6923 GB, free: 134.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003884/0.9685, allocations: 216.9 kB / 0.6925 GB, free: 134.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/0.9687, allocations: 93.27 kB / 0.6926 GB, free: 134.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002901/0.9716, allocations: 2.49 MB / 0.695 GB, free: 133.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9716, allocations: 0 / 0.695 GB, free: 133.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004134/0.9758, allocations: 1.284 MB / 0.6963 GB, free: 133.7 MB / 458.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.0004768/0.9763, allocations: 247.8 kB / 0.6965 GB, free: 133.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006472/0.9828, allocations: 5.105 MB / 0.7015 GB, free: 131.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.9828, allocations: 3.969 kB / 0.7015 GB, free: 131.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002839/0.9856, allocations: 2.392 MB / 0.7038 GB, free: 129.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009609/0.9953, allocations: 0.9337 MB / 0.7048 GB, free: 128.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01813/1.013, allocations: 15.47 MB / 0.7199 GB, free: 114.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003262/1.017, allocations: 4.492 MB / 0.7243 GB, free: 109.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003718/1.02, allocations: 1.363 MB / 0.7256 GB, free: 108.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006391/1.021, allocations: 299.4 kB / 0.7259 GB, free: 108.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.273e-06/1.021, allocations: 0 / 0.7259 GB, free: 108.1 MB / 458.7 MB Notification: Performance of Templates: time 0.07505/1.096, allocations: 54.04 MB / 0.7786 GB, free: 54.56 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches