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.001698/0.001698, allocations: 123 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.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.002012/0.002012, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.501/1.501, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.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.001686/0.001686, allocations: 51.92 kB / 365.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.104, allocations: 52.14 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2301/0.3341, allocations: 28.69 MB / 446.5 MB, free: 7.785 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.3484, allocations: 8.416 MB / 454.9 MB, free: 7.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006216/0.3547, allocations: 255.4 kB / 455.2 MB, free: 7.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0179/0.3726, allocations: 8.275 MB / 463.4 MB, free: 6.453 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009549/0.3821, allocations: 2.846 MB / 466.3 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005987/0.3881, allocations: 1.876 MB / 468.2 MB, free: 4.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01396/0.4021, allocations: 9.971 MB / 478.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02824/0.4303, allocations: 16.32 MB / 494.5 MB, free: 7.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01045/0.4408, allocations: 5.473 MB / 499.9 MB, free: 1.883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01159/0.4523, allocations: 6.087 MB / 0.4942 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004421/0.4568, allocations: 1.543 MB / 0.4957 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006731/0.4635, allocations: 1.897 MB / 0.4975 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005009/0.4685, allocations: 2.991 MB / 0.5004 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01227/0.4808, allocations: 5.847 MB / 0.5062 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02738/0.5081, allocations: 20.67 MB / 0.5263 GB, free: 11.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.5082, allocations: 0 / 0.5263 GB, free: 11.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5082, allocations: 0 / 0.5263 GB, free: 11.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005332/0.5087, allocations: 0 / 0.5263 GB, free: 11.41 MB / 430.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.03532/0.544, allocations: 12.06 MB / 0.5381 GB, free: 15.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.5441, allocations: 11.89 kB / 0.5381 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004889/0.549, allocations: 1.544 MB / 0.5396 GB, free: 13.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03143/0.5804, allocations: 5.688 MB / 0.5452 GB, free: 8.141 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01433/0.5947, allocations: 6.311 MB / 0.5513 GB, free: 1.812 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008336/0.5955, allocations: 0.7086 MB / 0.552 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003702/0.5992, allocations: 0.9308 MB / 0.5529 GB, free: 196 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03815/0.6374, allocations: 15.08 MB / 0.5677 GB, free: 1.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004183/0.6378, allocations: 15.95 kB / 0.5677 GB, free: 1.055 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002895/0.6407, allocations: 386.4 kB / 0.5681 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006403/0.6414, allocations: 0.5195 MB / 0.5686 GB, free: 168 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03182/0.6732, allocations: 13.75 MB / 0.582 GB, free: 2.387 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0904/0.7636, allocations: 47.28 MB / 0.6282 GB, free: 2.238 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3908/1.154, allocations: 28.2 MB / 0.6557 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005558/1.16, allocations: 2.807 MB / 0.6585 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004251/1.16, allocations: 238.3 kB / 0.6587 GB, free: 124.9 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/1.16, allocations: 75.8 kB / 0.6588 GB, free: 124.9 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 5.571e-06/1.16, allocations: 0 / 0.6588 GB, free: 124.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.03116/1.192, allocations: 14.86 MB / 0.6733 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/1.192, allocations: 94.52 kB / 0.6734 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006165/1.198, allocations: 3.609 MB / 0.6769 GB, free: 118.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006294/1.198, allocations: 90.05 kB / 0.677 GB, free: 118.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002246/1.201, allocations: 4.2 MB / 0.6811 GB, free: 115.4 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00136/1.202, allocations: 1.402 MB / 0.6824 GB, free: 114.4 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001706/1.204, allocations: 1.169 MB / 0.6836 GB, free: 113.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.185e-05/1.204, allocations: 301.1 kB / 0.6839 GB, free: 113.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003522/1.207, allocations: 2.591 MB / 0.6864 GB, free: 112.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004231/1.212, allocations: 5.086 MB / 0.6914 GB, free: 108.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008558/1.22, allocations: 8.347 MB / 0.6995 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.96e-05/1.22, allocations: 23.12 kB / 0.6995 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01296/1.233, allocations: 8.631 MB / 0.708 GB, free: 98.86 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.599e-05/1.233, allocations: 42.69 kB / 0.708 GB, free: 98.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001225/1.233, allocations: 80.22 kB / 0.7081 GB, free: 98.86 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/1.236, allocations: 0.8513 MB / 0.7089 GB, free: 98.69 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004405/1.24, allocations: 1.374 MB / 0.7103 GB, free: 98.53 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009404/1.25, allocations: 7.688 MB / 0.7178 GB, free: 92.61 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00426/1.254, allocations: 327.5 kB / 0.7181 GB, free: 92.29 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008021/1.255, allocations: 304 kB / 0.7184 GB, free: 91.99 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.005365/1.26, allocations: 3.515 MB / 0.7218 GB, free: 88.46 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/1.261, allocations: 425.3 kB / 0.7222 GB, free: 88.05 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009534/1.271, allocations: 5.96 MB / 0.728 GB, free: 82.05 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/1.271, allocations: 40.56 kB / 0.7281 GB, free: 82.02 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.186e-05/1.271, allocations: 8.875 kB / 0.7281 GB, free: 82.01 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.565e-05/1.271, allocations: 19.92 kB / 0.7281 GB, free: 81.99 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02653/1.297, allocations: 14.94 MB / 0.7427 GB, free: 67.01 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.977e-05/1.297, allocations: 7.984 kB / 0.7427 GB, free: 67 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002691/1.3, allocations: 0.6949 MB / 0.7434 GB, free: 66.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/1.302, allocations: 0.713 MB / 0.7441 GB, free: 65.59 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003913/1.302, allocations: 83.98 kB / 0.7441 GB, free: 65.51 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007923/1.31, allocations: 6.711 MB / 0.7507 GB, free: 58.67 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.31, allocations: 7.938 kB / 0.7507 GB, free: 58.66 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0121/1.322, allocations: 8.752 MB / 0.7592 GB, free: 49.79 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002486/1.325, allocations: 0.9042 MB / 0.7601 GB, free: 48.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001215/1.326, allocations: 79.88 kB / 0.7602 GB, free: 48.78 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002463/1.329, allocations: 188.3 kB / 0.7604 GB, free: 48.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005721/1.329, allocations: 258.7 kB / 0.7606 GB, free: 48.34 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002816/1.329, allocations: 120 kB / 0.7607 GB, free: 48.23 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004496/1.334, allocations: 2.412 MB / 0.7631 GB, free: 45.83 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8e-08/1.334, allocations: 3.938 kB / 0.7631 GB, free: 45.82 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007015/1.341, allocations: 1.551 MB / 0.7646 GB, free: 44.27 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.01234/1.353, allocations: 9.473 MB / 0.7739 GB, free: 34.67 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009299/1.363, allocations: 6.268 MB / 0.78 GB, free: 28.4 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/1.363, allocations: 4 kB / 0.78 GB, free: 28.4 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004222/1.367, allocations: 2.737 MB / 0.7827 GB, free: 25.65 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006019/1.373, allocations: 0.9577 MB / 0.7836 GB, free: 24.73 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09851/1.471, allocations: 52.62 MB / 0.835 GB, free: 1.012 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2157/1.687, allocations: 5.97 MB / 0.8408 GB, free: 177.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005494/1.692, allocations: 1.879 MB / 0.8427 GB, free: 177.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005167/1.698, allocations: 3.215 MB / 0.8458 GB, free: 176.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.482e-06/1.698, allocations: 2.188 kB / 0.8458 GB, free: 176.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1653/1.863, allocations: 120.8 MB / 0.9637 GB, free: 82.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.34/22.2, allocations: 7.844 kB / 0.9638 GB, free: 82.06 MB / 0.545 GB " [Timeout remaining time 638] (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: 24.876994350925088]