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.001943/0.001943, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002419/0.002419, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 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 1.64/1.64, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 51.94 kB / 347.2 MB, free: 9.844 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2322, allocations: 49.16 MB / 396.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02807/0.2603, allocations: 25.09 MB / 421.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02005/0.2804, allocations: 8.234 MB / 429.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005791/0.2862, allocations: 218.2 kB / 429.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01976/0.3059, allocations: 7.675 MB / 437.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01121/0.3171, allocations: 3.066 MB / 440.7 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006058/0.3232, allocations: 1.879 MB / 442.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01522/0.3384, allocations: 10.58 MB / 453.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02357/0.362, allocations: 14.02 MB / 467.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008604/0.3706, allocations: 5.743 MB / 472.9 MB, free: 6.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01106/0.3816, allocations: 6.189 MB / 479.1 MB, free: 180 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003971/0.3856, allocations: 1.578 MB / 480.7 MB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005594/0.3912, allocations: 1.921 MB / 482.6 MB, free: 12.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004565/0.3958, allocations: 3.195 MB / 485.8 MB, free: 9.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009039/0.4048, allocations: 4.763 MB / 490.5 MB, free: 4.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02709/0.4319, allocations: 21.33 MB / 0.4999 GB, free: 15.29 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4319, allocations: 0 / 0.4999 GB, free: 15.29 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4319, allocations: 3.938 kB / 0.4999 GB, free: 15.29 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005555/0.4324, allocations: 0 / 0.4999 GB, free: 15.29 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03541/0.4679, allocations: 12.59 MB / 0.5122 GB, free: 2.605 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.4679, allocations: 15.98 kB / 0.5122 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004668/0.4726, allocations: 1.651 MB / 0.5138 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04854/0.5211, allocations: 8.647 MB / 0.5223 GB, free: 8.262 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01414/0.5353, allocations: 5.966 MB / 0.5281 GB, free: 2.227 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008939/0.5362, allocations: 0.7426 MB / 0.5288 GB, free: 1.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003956/0.5401, allocations: 0.9765 MB / 0.5298 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0373/0.5774, allocations: 16.74 MB / 0.5461 GB, free: 15.64 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002677/0.5777, allocations: 23.83 kB / 0.5461 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001737/0.5794, allocations: 412 kB / 0.5465 GB, free: 15.21 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006622/0.5801, allocations: 0.6145 MB / 0.5471 GB, free: 14.6 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3508/0.9309, allocations: 15.89 MB / 0.5626 GB, free: 129.3 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07075/1.002, allocations: 45.78 MB / 0.6073 GB, free: 102.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01734/1.019, allocations: 12.1 MB / 0.6192 GB, free: 97.85 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00405/1.023, allocations: 3.148 MB / 0.6222 GB, free: 94.69 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01291/1.036, allocations: 8.392 MB / 0.6304 GB, free: 86.51 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/1.036, allocations: 60.69 kB / 0.6305 GB, free: 86.44 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.44e-06/1.036, allocations: 0 / 0.6305 GB, free: 86.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02214/1.058, allocations: 12.84 MB / 0.643 GB, free: 73.93 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/1.058, allocations: 77.59 kB / 0.6431 GB, free: 73.84 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004638/1.063, allocations: 4.248 MB / 0.6472 GB, free: 69.62 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002593/1.063, allocations: 73.64 kB / 0.6473 GB, free: 69.55 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/1.065, allocations: 4.812 MB / 0.652 GB, free: 64.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005948/1.065, allocations: 1.04 MB / 0.653 GB, free: 63.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001279/1.067, allocations: 1.242 MB / 0.6542 GB, free: 62.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.271e-05/1.067, allocations: 301.1 kB / 0.6545 GB, free: 62.15 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002697/1.069, allocations: 2.444 MB / 0.6569 GB, free: 59.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003641/1.073, allocations: 5.624 MB / 0.6624 GB, free: 52.54 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007142/1.08, allocations: 8.686 MB / 0.6709 GB, free: 42.28 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.565e-05/1.08, allocations: 32 kB / 0.6709 GB, free: 42.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01205/1.092, allocations: 8.731 MB / 0.6794 GB, free: 33.46 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.013e-05/1.092, allocations: 52 kB / 0.6795 GB, free: 33.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/1.092, allocations: 108.9 kB / 0.6796 GB, free: 33.31 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001985/1.094, allocations: 0.8481 MB / 0.6804 GB, free: 32.46 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004569/1.099, allocations: 1.404 MB / 0.6818 GB, free: 31.05 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008596/1.108, allocations: 7.281 MB / 0.6889 GB, free: 23.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004312/1.112, allocations: 347.5 kB / 0.6892 GB, free: 23.31 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005388/1.112, allocations: 348 kB / 0.6896 GB, free: 22.97 MB / 478.1 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.004486/1.117, allocations: 3.692 MB / 0.6932 GB, free: 19.27 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007867/1.118, allocations: 421.3 kB / 0.6936 GB, free: 18.85 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007228/1.125, allocations: 5.043 MB / 0.6985 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.877e-05/1.125, allocations: 32 kB / 0.6985 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/1.125, allocations: 4 kB / 0.6985 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.403e-05/1.125, allocations: 23.88 kB / 0.6986 GB, free: 13.69 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01651/1.142, allocations: 11.69 MB / 0.71 GB, free: 1.852 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/1.142, allocations: 4 kB / 0.71 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002008/1.144, allocations: 0.5226 MB / 0.7105 GB, free: 1.324 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001683/1.145, allocations: 0.6922 MB / 0.7112 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000166/1.145, allocations: 67.92 kB / 0.7112 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009615/1.155, allocations: 6.437 MB / 0.7175 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.155, allocations: 4.312 kB / 0.7175 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/1.167, allocations: 7.325 MB / 0.7247 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00228/1.169, allocations: 0.7626 MB / 0.7254 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008697/1.17, allocations: 59.94 kB / 0.7255 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002144/1.172, allocations: 159.8 kB / 0.7256 GB, free: 1.547 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005127/1.173, allocations: 213.8 kB / 0.7258 GB, free: 1.336 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002243/1.173, allocations: 91.98 kB / 0.7259 GB, free: 1.246 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005273/1.178, allocations: 2.665 MB / 0.7285 GB, free: 14.57 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.1e-07/1.178, allocations: 0 / 0.7285 GB, free: 14.57 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.007433/1.186, allocations: 1.555 MB / 0.73 GB, free: 13.01 MB / 0.4982 GB 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.01301/1.199, allocations: 7.996 MB / 0.7379 GB, free: 4.863 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01055/1.209, allocations: 5.867 MB / 0.7436 GB, free: 14.98 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/1.209, allocations: 0 / 0.7436 GB, free: 14.98 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004062/1.213, allocations: 2.294 MB / 0.7458 GB, free: 12.67 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004528/1.218, allocations: 0.9428 MB / 0.7467 GB, free: 11.73 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2582/1.476, allocations: 54.88 MB / 0.8003 GB, free: 148.7 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004675/1.481, allocations: 5.765 MB / 0.806 GB, free: 143.1 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004181/1.485, allocations: 1.948 MB / 0.8079 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003362/1.488, allocations: 3.385 MB / 0.8112 GB, free: 137.8 MB / 0.5138 GB Notification: Performance of SimCode: time 7.32e-07/1.488, allocations: 0 / 0.8112 GB, free: 137.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1543/1.643, allocations: 120.1 MB / 0.9284 GB, free: 17.59 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.12/18.77, allocations: 7.844 kB / 0.9284 GB, free: 17.58 MB / 0.5138 GB " [Timeout remaining time 641] (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/jenkins1/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/jenkins1/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: 21.56801690766588]