Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001846/0.001846, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002239/0.002239, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.575/1.575, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_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_1_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.001657/0.001657, allocations: 47.92 kB / 373 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1222, allocations: 53.33 MB / 426.4 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2572/0.3795, allocations: 28.74 MB / 455.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02416/0.4036, allocations: 8.507 MB / 463.6 MB, free: 3.145 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008828/0.4125, allocations: 251.8 kB / 463.8 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02165/0.4341, allocations: 8.276 MB / 472.1 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01287/0.447, allocations: 2.856 MB / 475 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007634/0.4546, allocations: 1.884 MB / 476.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01758/0.4722, allocations: 10.01 MB / 486.9 MB, free: 3.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03301/0.5052, allocations: 16.34 MB / 0.4914 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01135/0.5166, allocations: 5.459 MB / 0.4967 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01221/0.5288, allocations: 6.128 MB / 0.5027 GB, free: 8.328 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005528/0.5343, allocations: 1.539 MB / 0.5042 GB, free: 6.789 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008393/0.5427, allocations: 1.921 MB / 0.5061 GB, free: 4.867 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006494/0.5492, allocations: 2.997 MB / 0.509 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01487/0.5641, allocations: 5.856 MB / 0.5148 GB, free: 11.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03244/0.5965, allocations: 20.68 MB / 0.535 GB, free: 7.234 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.5965, allocations: 4 kB / 0.535 GB, free: 7.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5965, allocations: 3.938 kB / 0.535 GB, free: 7.227 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005935/0.5971, allocations: 3.938 kB / 0.535 GB, free: 7.223 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.04041/0.6375, allocations: 12.09 MB / 0.5468 GB, free: 11.02 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.6376, allocations: 12.03 kB / 0.5468 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006355/0.6439, allocations: 1.536 MB / 0.5483 GB, free: 9.461 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0327/0.6766, allocations: 5.597 MB / 0.5538 GB, free: 3.852 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0156/0.6922, allocations: 6.334 MB / 0.5599 GB, free: 13.46 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008709/0.6931, allocations: 0.7064 MB / 0.5606 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00457/0.6977, allocations: 0.9296 MB / 0.5615 GB, free: 11.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04377/0.7414, allocations: 15.1 MB / 0.5763 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004423/0.7419, allocations: 19.94 kB / 0.5763 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003262/0.7451, allocations: 404 kB / 0.5767 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006622/0.7458, allocations: 0.5155 MB / 0.5772 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03335/0.7791, allocations: 13.78 MB / 0.5907 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5674/1.347, allocations: 47.69 MB / 0.6372 GB, free: 127.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01899/1.365, allocations: 28.24 MB / 0.6648 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005802/1.371, allocations: 2.808 MB / 0.6675 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005583/1.372, allocations: 339.3 kB / 0.6679 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.026e-05/1.372, allocations: 82.5 kB / 0.6679 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 5.761e-06/1.372, allocations: 1.281 kB / 0.6679 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.03409/1.406, allocations: 14.91 MB / 0.6825 GB, free: 96.87 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/1.406, allocations: 100.2 kB / 0.6826 GB, free: 96.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005478/1.412, allocations: 3.606 MB / 0.6861 GB, free: 95.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007426/1.412, allocations: 91.67 kB / 0.6862 GB, free: 95.42 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002434/1.415, allocations: 4.195 MB / 0.6903 GB, free: 92.76 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001559/1.416, allocations: 1.411 MB / 0.6917 GB, free: 91.67 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002169/1.418, allocations: 1.171 MB / 0.6928 GB, free: 91.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.846e-05/1.418, allocations: 305 kB / 0.6931 GB, free: 90.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003967/1.422, allocations: 2.597 MB / 0.6956 GB, free: 89.83 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005586/1.428, allocations: 5.088 MB / 0.7006 GB, free: 85.05 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009751/1.438, allocations: 8.352 MB / 0.7088 GB, free: 78.38 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001/1.438, allocations: 24.94 kB / 0.7088 GB, free: 78.38 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01666/1.455, allocations: 8.65 MB / 0.7172 GB, free: 73.41 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.013e-05/1.455, allocations: 40.88 kB / 0.7173 GB, free: 73.38 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/1.455, allocations: 84.66 kB / 0.7174 GB, free: 73.29 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002314/1.457, allocations: 0.8498 MB / 0.7182 GB, free: 72.44 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004736/1.462, allocations: 1.373 MB / 0.7195 GB, free: 71.07 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009322/1.471, allocations: 7.676 MB / 0.727 GB, free: 63.25 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00535/1.476, allocations: 331.5 kB / 0.7273 GB, free: 62.93 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001311/1.478, allocations: 312 kB / 0.7276 GB, free: 62.62 MB / 0.5138 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.006598/1.484, allocations: 3.517 MB / 0.7311 GB, free: 59.09 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001184/1.486, allocations: 429.3 kB / 0.7315 GB, free: 58.67 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009513/1.495, allocations: 5.962 MB / 0.7373 GB, free: 52.68 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.441e-05/1.495, allocations: 40 kB / 0.7373 GB, free: 52.64 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/1.495, allocations: 8 kB / 0.7374 GB, free: 52.63 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.858e-05/1.495, allocations: 19.92 kB / 0.7374 GB, free: 52.61 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02895/1.524, allocations: 14.97 MB / 0.752 GB, free: 37.59 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.047e-05/1.524, allocations: 4 kB / 0.752 GB, free: 37.59 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002719/1.527, allocations: 0.6904 MB / 0.7527 GB, free: 36.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002025/1.529, allocations: 0.7151 MB / 0.7534 GB, free: 36.18 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006646/1.53, allocations: 87.97 kB / 0.7535 GB, free: 36.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008329/1.538, allocations: 6.721 MB / 0.76 GB, free: 29.25 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.538, allocations: 7.938 kB / 0.76 GB, free: 29.24 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01314/1.551, allocations: 8.773 MB / 0.7686 GB, free: 20.34 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002634/1.554, allocations: 0.912 MB / 0.7695 GB, free: 19.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001176/1.555, allocations: 75.94 kB / 0.7696 GB, free: 19.33 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00277/1.558, allocations: 175.8 kB / 0.7697 GB, free: 19.16 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008631/1.558, allocations: 274.7 kB / 0.77 GB, free: 18.89 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004077/1.559, allocations: 120 kB / 0.7701 GB, free: 18.77 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004655/1.564, allocations: 2.419 MB / 0.7725 GB, free: 16.37 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.9e-07/1.564, allocations: 3.938 kB / 0.7725 GB, free: 16.36 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008435/1.572, allocations: 1.551 MB / 0.774 GB, free: 14.81 MB / 0.5138 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.01394/1.586, allocations: 9.493 MB / 0.7832 GB, free: 5.188 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01124/1.597, allocations: 6.281 MB / 0.7894 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/1.597, allocations: 1.969 kB / 0.7894 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006558/1.604, allocations: 2.743 MB / 0.7921 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006412/1.61, allocations: 0.9683 MB / 0.793 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.383/1.993, allocations: 52.56 MB / 0.8443 GB, free: 186.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01235/2.006, allocations: 5.978 MB / 0.8502 GB, free: 184.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006544/2.012, allocations: 1.88 MB / 0.852 GB, free: 184.6 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005863/2.018, allocations: 3.234 MB / 0.8552 GB, free: 181.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.753e-06/2.018, allocations: 0 / 0.8552 GB, free: 181.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1781/2.196, allocations: 121.1 MB / 0.9734 GB, free: 77.21 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.91/22.11, allocations: 11.39 kB / 0.9734 GB, free: 77.21 MB / 0.5607 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv. Warning: Get data of variable quadraticSpeedDependentTorqueQS.phi from file Modelica_4.1.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: 24.9851243430021]