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_MTPA.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.001797/0.001797, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002306/0.002306, allocations: 181.7 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.393/1.393, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 0.001531/0.001531, allocations: 51.91 kB / 370.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2695, allocations: 52.19 MB / 422.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03445/0.3039, allocations: 28.76 MB / 451.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01878/0.3227, allocations: 8.439 MB / 459.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00658/0.3293, allocations: 250.8 kB / 460.1 MB, free: 8.996 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02054/0.3498, allocations: 8.303 MB / 468.4 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.3606, allocations: 2.913 MB / 471.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006283/0.3669, allocations: 1.91 MB / 473.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01569/0.3826, allocations: 10.05 MB / 483.3 MB, free: 1.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02754/0.4101, allocations: 14.03 MB / 497.3 MB, free: 3.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01023/0.4204, allocations: 5.494 MB / 0.491 GB, free: 14.08 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01238/0.4327, allocations: 6.109 MB / 0.497 GB, free: 7.949 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005775/0.4385, allocations: 1.539 MB / 0.4985 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008391/0.4469, allocations: 1.906 MB / 0.5004 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007081/0.454, allocations: 2.985 MB / 0.5033 GB, free: 1.512 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01272/0.4667, allocations: 5.856 MB / 0.509 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03/0.4967, allocations: 20.67 MB / 0.5292 GB, free: 6.883 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.4967, allocations: 0 / 0.5292 GB, free: 6.883 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4967, allocations: 0 / 0.5292 GB, free: 6.883 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006948/0.4974, allocations: 0 / 0.5292 GB, free: 6.883 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.249/0.7464, allocations: 11.98 MB / 0.5409 GB, free: 94.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.7464, allocations: 11.84 kB / 0.5409 GB, free: 94.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004686/0.7511, allocations: 1.546 MB / 0.5424 GB, free: 93.69 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02945/0.7805, allocations: 5.679 MB / 0.5479 GB, free: 91.54 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01276/0.7933, allocations: 6.362 MB / 0.5542 GB, free: 87.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006669/0.794, allocations: 0.7067 MB / 0.5549 GB, free: 87.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00356/0.7975, allocations: 0.929 MB / 0.5558 GB, free: 86.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03271/0.8302, allocations: 15.08 MB / 0.5705 GB, free: 71.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005776/0.8308, allocations: 20.72 kB / 0.5705 GB, free: 71.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003301/0.8341, allocations: 391.4 kB / 0.5709 GB, free: 70.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000457/0.8346, allocations: 0.5155 MB / 0.5714 GB, free: 70.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02735/0.8619, allocations: 13.75 MB / 0.5848 GB, free: 56.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0714/0.9333, allocations: 46.56 MB / 0.6303 GB, free: 9.574 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01176/0.9451, allocations: 8.033 MB / 0.6381 GB, free: 2.781 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003857/0.9489, allocations: 2.796 MB / 0.6409 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003475/0.9493, allocations: 85.03 kB / 0.6409 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.406e-05/0.9494, allocations: 81.56 kB / 0.641 GB, free: 15.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.149e-06/0.9494, allocations: 4 kB / 0.641 GB, free: 15.81 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03279/0.9822, allocations: 14.71 MB / 0.6554 GB, free: 1.156 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.345e-05/0.9822, allocations: 94.42 kB / 0.6555 GB, free: 1.051 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006052/0.9883, allocations: 3.603 MB / 0.659 GB, free: 13.45 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005817/0.9889, allocations: 89.7 kB / 0.6591 GB, free: 13.36 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003351/0.9922, allocations: 4.196 MB / 0.6632 GB, free: 9.125 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001885/0.9941, allocations: 1.414 MB / 0.6646 GB, free: 7.699 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001963/0.9961, allocations: 1.16 MB / 0.6657 GB, free: 6.527 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.9962, allocations: 309.1 kB / 0.666 GB, free: 6.223 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004153/1, allocations: 2.592 MB / 0.6685 GB, free: 3.625 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006552/1.007, allocations: 5.083 MB / 0.6735 GB, free: 13.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/1.019, allocations: 8.34 MB / 0.6816 GB, free: 3.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-05/1.019, allocations: 24 kB / 0.6816 GB, free: 3.816 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01712/1.036, allocations: 8.641 MB / 0.6901 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.775e-05/1.036, allocations: 40 kB / 0.6901 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001531/1.037, allocations: 84 kB / 0.6902 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002505/1.039, allocations: 0.8503 MB / 0.691 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005165/1.044, allocations: 1.365 MB / 0.6924 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/1.057, allocations: 7.575 MB / 0.6998 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004499/1.061, allocations: 331.5 kB / 0.7001 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/1.062, allocations: 312 kB / 0.7004 GB, free: 488 kB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008242/1.07, allocations: 3.513 MB / 0.7038 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/1.072, allocations: 429.2 kB / 0.7042 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/1.083, allocations: 5.965 MB / 0.71 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.739e-05/1.083, allocations: 43.94 kB / 0.7101 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/1.083, allocations: 8 kB / 0.7101 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.948e-05/1.083, allocations: 19.92 kB / 0.7101 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03/1.113, allocations: 14.96 MB / 0.7247 GB, free: 7.348 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/1.113, allocations: 4 kB / 0.7247 GB, free: 7.344 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003038/1.116, allocations: 0.6904 MB / 0.7254 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002168/1.118, allocations: 0.7135 MB / 0.7261 GB, free: 5.938 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004814/1.119, allocations: 79.98 kB / 0.7262 GB, free: 5.859 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/1.129, allocations: 6.606 MB / 0.7326 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/1.129, allocations: 11.98 kB / 0.7326 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01517/1.144, allocations: 8.757 MB / 0.7412 GB, free: 6.238 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002956/1.147, allocations: 0.8485 MB / 0.742 GB, free: 5.387 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009161/1.148, allocations: 75.94 kB / 0.7421 GB, free: 5.312 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002253/1.15, allocations: 187.8 kB / 0.7423 GB, free: 5.129 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005819/1.151, allocations: 278.5 kB / 0.7425 GB, free: 4.855 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002591/1.151, allocations: 116 kB / 0.7426 GB, free: 4.742 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004461/1.156, allocations: 2.412 MB / 0.745 GB, free: 2.344 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.156, allocations: 0 / 0.745 GB, free: 2.344 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006567/1.162, allocations: 1.555 MB / 0.7465 GB, free: 0.7891 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (377): * Single equations (assignments): 376 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.4314/1.593, allocations: 9.46 MB / 0.7557 GB, free: 183.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009167/1.603, allocations: 6.273 MB / 0.7619 GB, free: 180.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/1.603, allocations: 1.594 kB / 0.7619 GB, free: 180.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004272/1.607, allocations: 2.724 MB / 0.7645 GB, free: 179.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004727/1.612, allocations: 0.9582 MB / 0.7655 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07579/1.687, allocations: 52.75 MB / 0.817 GB, free: 135.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007142/1.695, allocations: 5.98 MB / 0.8228 GB, free: 129.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00442/1.699, allocations: 1.881 MB / 0.8247 GB, free: 127.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004177/1.703, allocations: 3.217 MB / 0.8278 GB, free: 124.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.132e-06/1.703, allocations: 3.938 kB / 0.8278 GB, free: 124.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1744/1.878, allocations: 126 MB / 0.9508 GB, free: 14.67 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.27/23.15, allocations: 9.906 kB / 0.9509 GB, free: 14.66 MB / 0.5607 GB " [Timeout remaining time 637] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv. Warning: Get data of variable quadraticSpeedDependentTorqueQS.phi from file Modelica_4.0.0_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: 25.905030964997422]