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.00106/0.00106, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001342/0.001342, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9059/0.9059, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 3.666e-06/3.666e-06, allocations: 0 / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.039e-05/3.405e-05, allocations: 2.281 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01996/0.01999, allocations: 24.61 MB / 343.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.03597, allocations: 8.092 MB / 351.2 MB, free: 5.48 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006087/0.04205, allocations: 250.8 kB / 351.4 MB, free: 5.234 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01105/0.0531, allocations: 8.062 MB / 359.5 MB, free: 13.15 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008648/0.06175, allocations: 2.894 MB / 362.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003836/0.06558, allocations: 1.842 MB / 364.2 MB, free: 8.402 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00961/0.07519, allocations: 10.37 MB / 374.6 MB, free: 14 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0185/0.0937, allocations: 13.89 MB / 388.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01177/0.1055, allocations: 8.12 MB / 396.6 MB, free: 7.832 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008998/0.1145, allocations: 5.239 MB / 401.8 MB, free: 2.582 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004005/0.1185, allocations: 1.539 MB / 403.4 MB, free: 1.043 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0061/0.1246, allocations: 1.898 MB / 405.3 MB, free: 15.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004773/0.1293, allocations: 3.043 MB / 408.3 MB, free: 12.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008298/0.1376, allocations: 3.914 MB / 412.2 MB, free: 8.172 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01928/0.1569, allocations: 20.92 MB / 433.2 MB, free: 3.199 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1569, allocations: 0 / 433.2 MB, free: 3.199 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1569, allocations: 0 / 433.2 MB, free: 3.199 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005866/0.1575, allocations: 4 kB / 433.2 MB, free: 3.195 MB / 394.7 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.02753/0.1851, allocations: 11.88 MB / 445 MB, free: 7.219 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.1851, allocations: 8.031 kB / 445.1 MB, free: 7.211 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004963/0.1901, allocations: 1.543 MB / 446.6 MB, free: 5.656 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3098/0.4999, allocations: 5.682 MB / 452.3 MB, free: 107.8 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01005/0.5099, allocations: 6.362 MB / 458.6 MB, free: 105.7 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004836/0.5104, allocations: 0.7087 MB / 459.3 MB, free: 105.4 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002759/0.5132, allocations: 0.9261 MB / 460.3 MB, free: 105.1 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.028/0.5412, allocations: 15.23 MB / 475.5 MB, free: 93.49 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003643/0.5415, allocations: 15.89 kB / 475.5 MB, free: 93.48 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002898/0.5444, allocations: 395.7 kB / 475.9 MB, free: 93.1 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004102/0.5448, allocations: 0.5155 MB / 476.4 MB, free: 92.58 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02108/0.5659, allocations: 13.69 MB / 490.1 MB, free: 78.86 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05324/0.6192, allocations: 42.71 MB / 0.5203 GB, free: 35.83 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007496/0.6267, allocations: 7.942 MB / 0.5281 GB, free: 29.12 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002519/0.6292, allocations: 2.8 MB / 0.5308 GB, free: 26.32 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001887/0.6294, allocations: 78.89 kB / 0.5309 GB, free: 26.25 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.6294, allocations: 77.58 kB / 0.531 GB, free: 26.16 MB / 410.8 MB Notification: Performance of pre-optimization done (n=384): time 5.63e-06/0.6294, allocations: 3.984 kB / 0.531 GB, free: 26.16 MB / 410.8 MB Notification: Performance of matching and sorting (n=392): time 0.01729/0.6467, allocations: 14.65 MB / 0.5453 GB, free: 11.64 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.6467, allocations: 94.48 kB / 0.5454 GB, free: 11.53 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004015/0.6508, allocations: 3.738 MB / 0.549 GB, free: 7.797 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003006/0.6511, allocations: 93.7 kB / 0.5491 GB, free: 7.699 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.6522, allocations: 4.167 MB / 0.5532 GB, free: 3.523 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007472/0.6529, allocations: 1.397 MB / 0.5546 GB, free: 2.145 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001207/0.6541, allocations: 1.156 MB / 0.5557 GB, free: 0.9766 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 4.025e-05/0.6542, allocations: 301.1 kB / 0.556 GB, free: 0.6797 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0028/0.657, allocations: 2.592 MB / 0.5585 GB, free: 14.08 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004085/0.6611, allocations: 5.104 MB / 0.5635 GB, free: 7.797 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007652/0.6687, allocations: 8.337 MB / 0.5716 GB, free: 14.27 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.367e-05/0.6688, allocations: 24 kB / 0.5717 GB, free: 14.25 MB / 442.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01085/0.6796, allocations: 8.615 MB / 0.5801 GB, free: 5.598 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.803e-05/0.6797, allocations: 40 kB / 0.5801 GB, free: 5.559 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-05/0.6798, allocations: 80.03 kB / 0.5802 GB, free: 5.48 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.6813, allocations: 0.8393 MB / 0.581 GB, free: 4.641 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002911/0.6842, allocations: 1.373 MB / 0.5823 GB, free: 3.266 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00747/0.6917, allocations: 7.39 MB / 0.5896 GB, free: 11.77 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003032/0.6947, allocations: 327.6 kB / 0.5899 GB, free: 11.45 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005095/0.6953, allocations: 308 kB / 0.5902 GB, free: 11.14 MB / 458.8 MB 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.005452/0.7007, allocations: 3.512 MB / 0.5936 GB, free: 7.621 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008874/0.7016, allocations: 433.2 kB / 0.594 GB, free: 7.195 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007415/0.709, allocations: 5.945 MB / 0.5998 GB, free: 1.215 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.636e-05/0.709, allocations: 43.98 kB / 0.5999 GB, free: 1.172 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-05/0.7091, allocations: 11.94 kB / 0.5999 GB, free: 1.16 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.243e-05/0.7091, allocations: 23.92 kB / 0.5999 GB, free: 1.137 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02116/0.7302, allocations: 14.3 MB / 0.6139 GB, free: 2.789 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.7303, allocations: 4 kB / 0.6139 GB, free: 2.785 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001451/0.7317, allocations: 0.6949 MB / 0.6145 GB, free: 2.09 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/0.733, allocations: 0.6973 MB / 0.6152 GB, free: 1.391 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002414/0.7333, allocations: 87.92 kB / 0.6153 GB, free: 1.305 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1909/0.9242, allocations: 6.426 MB / 0.6216 GB, free: 149.9 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.9242, allocations: 9.125 kB / 0.6216 GB, free: 149.9 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008773/0.933, allocations: 8.721 MB / 0.6301 GB, free: 146.3 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001767/0.9347, allocations: 0.847 MB / 0.6309 GB, free: 146 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000335/0.9351, allocations: 73.31 kB / 0.631 GB, free: 146 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.9361, allocations: 181 kB / 0.6312 GB, free: 145.9 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004218/0.9365, allocations: 283.3 kB / 0.6314 GB, free: 145.9 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.9366, allocations: 116.8 kB / 0.6316 GB, free: 145.9 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.002797/0.9394, allocations: 2.402 MB / 0.6339 GB, free: 145 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9394, allocations: 0.875 kB / 0.6339 GB, free: 145 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.003997/0.9434, allocations: 1.547 MB / 0.6354 GB, free: 144.8 MB / 474.8 MB 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.008151/0.9516, allocations: 9.442 MB / 0.6446 GB, free: 140.2 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.006672/0.9582, allocations: 6.26 MB / 0.6507 GB, free: 134.8 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.9582, allocations: 0 / 0.6507 GB, free: 134.8 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002768/0.961, allocations: 2.735 MB / 0.6534 GB, free: 132.4 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/0.9639, allocations: 0.9591 MB / 0.6543 GB, free: 131.7 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05886/1.023, allocations: 52.63 MB / 0.7057 GB, free: 78.13 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004293/1.027, allocations: 5.522 MB / 0.7111 GB, free: 72.55 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.00304/1.03, allocations: 1.886 MB / 0.713 GB, free: 70.66 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00253/1.033, allocations: 3.211 MB / 0.7161 GB, free: 67.45 MB / 474.8 MB Notification: Performance of SimCode: time 1.503e-06/1.033, allocations: 0 / 0.7161 GB, free: 67.45 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2724/1.305, allocations: 122.4 MB / 0.8356 GB, free: 138.5 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/11.34, allocations: 5.562 kB / 0.8356 GB, free: 138.5 MB / 490.8 MB " [Timeout remaining time 649] (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/jenkins/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/jenkins/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: 13.242325858213007]