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_MTPA.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.000881/0.000881, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003523/0.003523, allocations: 166.4 kB / 24.7 MB, free: 9.43 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.862/0.862, allocations: 158.6 MB / 186.5 MB, free: 3.039 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 298.5 MB, free: 3.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.549e-05/1.725e-05, allocations: 2.281 kB / 298.5 MB, free: 3.461 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1356/0.1356, allocations: 25.11 MB / 323.6 MB, free: 392 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.1515, allocations: 8.257 MB / 331.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006518/0.1581, allocations: 216 kB / 332.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01127/0.1693, allocations: 8.09 MB / 340.2 MB, free: 4.449 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008727/0.1781, allocations: 3.131 MB / 343.3 MB, free: 1.941 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004438/0.1825, allocations: 1.902 MB / 345.2 MB, free: 40 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01266/0.1951, allocations: 10.91 MB / 356.1 MB, free: 5.082 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01985/0.215, allocations: 14.07 MB / 370.2 MB, free: 6.867 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01319/0.2282, allocations: 8.432 MB / 378.6 MB, free: 14.42 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008871/0.2371, allocations: 5.586 MB / 384.2 MB, free: 8.824 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004205/0.2413, allocations: 1.58 MB / 385.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005966/0.2472, allocations: 1.941 MB / 387.7 MB, free: 5.305 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003796/0.251, allocations: 3.253 MB / 391 MB, free: 2.043 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008682/0.2597, allocations: 4.097 MB / 395.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01893/0.2786, allocations: 21.49 MB / 416.5 MB, free: 8.395 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.2786, allocations: 0 / 416.5 MB, free: 8.395 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2786, allocations: 0 / 416.5 MB, free: 8.395 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005245/0.2792, allocations: 4 kB / 416.5 MB, free: 8.391 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02869/0.3079, allocations: 12.49 MB / 429 MB, free: 11.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.3079, allocations: 15.98 kB / 429.1 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004089/0.312, allocations: 1.647 MB / 430.7 MB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02364/0.3356, allocations: 8.659 MB / 439.4 MB, free: 1.457 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.3472, allocations: 5.97 MB / 445.3 MB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005033/0.3477, allocations: 0.7425 MB / 446.1 MB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003705/0.3514, allocations: 0.9803 MB / 447.1 MB, free: 9.691 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2957/0.6471, allocations: 16.72 MB / 463.8 MB, free: 104.8 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002971/0.6474, allocations: 12.92 kB / 463.8 MB, free: 104.8 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002637/0.65, allocations: 415 kB / 464.2 MB, free: 104.5 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005429/0.6506, allocations: 0.6098 MB / 464.8 MB, free: 104.4 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02734/0.6779, allocations: 15.9 MB / 480.7 MB, free: 98.61 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05607/0.734, allocations: 45.81 MB / 0.5142 GB, free: 61.35 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01024/0.7442, allocations: 12.11 MB / 0.526 GB, free: 52.02 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00259/0.7468, allocations: 3.147 MB / 0.5291 GB, free: 48.86 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009148/0.756, allocations: 8.39 MB / 0.5373 GB, free: 40.68 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.756, allocations: 60.62 kB / 0.5373 GB, free: 40.61 MB / 410.8 MB Notification: Performance of pre-optimization done (n=270): time 4.609e-06/0.756, allocations: 0 / 0.5373 GB, free: 40.61 MB / 410.8 MB Notification: Performance of matching and sorting (n=278): time 0.01534/0.7713, allocations: 12.82 MB / 0.5498 GB, free: 28.1 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.7714, allocations: 81.59 kB / 0.5499 GB, free: 28 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004425/0.7758, allocations: 4.243 MB / 0.5541 GB, free: 23.8 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002949/0.7761, allocations: 73.7 kB / 0.5541 GB, free: 23.72 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/0.7773, allocations: 4.786 MB / 0.5588 GB, free: 18.93 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005541/0.7779, allocations: 1.029 MB / 0.5598 GB, free: 17.91 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001011/0.7789, allocations: 1.223 MB / 0.561 GB, free: 16.68 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.694e-05/0.7789, allocations: 301.1 kB / 0.5613 GB, free: 16.38 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/0.781, allocations: 2.448 MB / 0.5637 GB, free: 13.93 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002758/0.7838, allocations: 5.628 MB / 0.5692 GB, free: 6.754 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006362/0.7901, allocations: 8.691 MB / 0.5777 GB, free: 12.49 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.101e-05/0.7902, allocations: 32 kB / 0.5777 GB, free: 12.46 MB / 426.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01159/0.8018, allocations: 8.734 MB / 0.5862 GB, free: 3.68 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.579e-05/0.8019, allocations: 52 kB / 0.5863 GB, free: 3.629 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001626/0.802, allocations: 108 kB / 0.5864 GB, free: 3.523 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001403/0.8034, allocations: 0.8516 MB / 0.5872 GB, free: 2.672 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002964/0.8064, allocations: 1.4 MB / 0.5886 GB, free: 1.27 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007203/0.8136, allocations: 7.277 MB / 0.5957 GB, free: 9.875 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003424/0.817, allocations: 351.5 kB / 0.596 GB, free: 9.531 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008176/0.8179, allocations: 352 kB / 0.5964 GB, free: 9.188 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004958/0.8228, allocations: 3.673 MB / 0.5999 GB, free: 5.496 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000735/0.8235, allocations: 429.2 kB / 0.6004 GB, free: 5.074 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005938/0.8295, allocations: 5.039 MB / 0.6053 GB, free: 15.98 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.73e-05/0.8295, allocations: 36 kB / 0.6053 GB, free: 15.94 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.8295, allocations: 8 kB / 0.6053 GB, free: 15.93 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.8295, allocations: 15.94 kB / 0.6053 GB, free: 15.92 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/0.8466, allocations: 11.7 MB / 0.6168 GB, free: 4.141 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.8466, allocations: 8 kB / 0.6168 GB, free: 4.133 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.8478, allocations: 0.5149 MB / 0.6173 GB, free: 3.617 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.849, allocations: 0.6903 MB / 0.6179 GB, free: 2.926 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001758/0.8492, allocations: 71.91 kB / 0.618 GB, free: 2.855 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1491/0.9983, allocations: 6.429 MB / 0.6243 GB, free: 137.6 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.9983, allocations: 7.141 kB / 0.6243 GB, free: 137.6 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007752/1.006, allocations: 7.307 MB / 0.6314 GB, free: 135 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/1.008, allocations: 0.7653 MB / 0.6322 GB, free: 134.8 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003457/1.008, allocations: 57.41 kB / 0.6322 GB, free: 134.8 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009548/1.009, allocations: 164.4 kB / 0.6324 GB, free: 134.8 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004077/1.009, allocations: 220.4 kB / 0.6326 GB, free: 134.7 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/1.009, allocations: 86.98 kB / 0.6327 GB, free: 134.7 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003576/1.013, allocations: 2.668 MB / 0.6353 GB, free: 133.7 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.2e-07/1.013, allocations: 0 / 0.6353 GB, free: 133.7 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.004831/1.018, allocations: 1.55 MB / 0.6368 GB, free: 133.6 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (263): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007443/1.025, allocations: 8 MB / 0.6446 GB, free: 129.9 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.00681/1.032, allocations: 5.872 MB / 0.6503 GB, free: 127.7 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.032, allocations: 2.781 kB / 0.6504 GB, free: 127.7 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002248/1.034, allocations: 2.269 MB / 0.6526 GB, free: 126.8 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/1.037, allocations: 0.9485 MB / 0.6535 GB, free: 126.4 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06642/1.104, allocations: 54.8 MB / 0.707 GB, free: 79.16 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004877/1.109, allocations: 5.771 MB / 0.7126 GB, free: 73.35 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.00312/1.112, allocations: 1.947 MB / 0.7145 GB, free: 71.4 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00291/1.115, allocations: 3.378 MB / 0.7178 GB, free: 68.02 MB / 458.8 MB Notification: Performance of SimCode: time 1.252e-06/1.115, allocations: 3.938 kB / 0.7178 GB, free: 68.02 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.269/1.384, allocations: 119.9 MB / 0.8349 GB, free: 142 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/11.48, allocations: 6.984 kB / 0.8349 GB, free: 142 MB / 474.8 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv","/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_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable quadraticSpeedDependentTorqueQS.phi in file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv. Warning: Get data of variable quadraticSpeedDependentTorqueQS.phi from file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.196540120989084]