Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007872/0.0007872, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008806/0.0008806, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8631/0.8631, allocations: 177 MB / 204.1 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 1.243e-06/1.243e-06, allocations: 0 / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.028e-05/1.152e-05, allocations: 8.953 kB / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01643/0.01644, allocations: 24.65 MB / 349.2 MB, free: 7.102 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.02726, allocations: 8.181 MB / 357.4 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001892/0.02915, allocations: 250.8 kB / 357.7 MB, free: 14.65 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007121/0.03628, allocations: 8.047 MB / 365.7 MB, free: 6.578 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004217/0.04049, allocations: 2.9 MB / 368.6 MB, free: 3.668 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002414/0.04291, allocations: 1.864 MB / 370.5 MB, free: 1.805 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00737/0.05028, allocations: 10.42 MB / 380.9 MB, free: 7.34 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01216/0.06243, allocations: 13.91 MB / 394.8 MB, free: 9.289 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006036/0.06847, allocations: 8.113 MB / 402.9 MB, free: 1.164 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004034/0.0725, allocations: 5.259 MB / 408.2 MB, free: 11.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001054/0.07356, allocations: 1.543 MB / 409.7 MB, free: 10.35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001791/0.07535, allocations: 1.925 MB / 411.6 MB, free: 8.426 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001534/0.07688, allocations: 3.035 MB / 414.7 MB, free: 5.383 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002449/0.07933, allocations: 3.918 MB / 418.6 MB, free: 1.457 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01222/0.09155, allocations: 20.94 MB / 439.5 MB, free: 12.46 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.738e-06/0.09155, allocations: 0 / 439.5 MB, free: 12.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09156, allocations: 0 / 439.5 MB, free: 12.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000266/0.09182, allocations: 0 / 439.5 MB, free: 12.46 MB / 410.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.01574/0.1076, allocations: 11.92 MB / 451.4 MB, free: 464 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1076, allocations: 15.98 kB / 451.5 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2573/0.3649, allocations: 1.536 MB / 453 MB, free: 104.3 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01515/0.38, allocations: 5.616 MB / 458.6 MB, free: 103.4 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007631/0.3876, allocations: 6.378 MB / 465 MB, free: 98.44 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.3879, allocations: 0.7022 MB / 465.7 MB, free: 97.75 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001287/0.3892, allocations: 0.9368 MB / 466.6 MB, free: 96.82 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01426/0.4034, allocations: 15.25 MB / 481.9 MB, free: 81.48 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/0.4036, allocations: 15.94 kB / 481.9 MB, free: 81.46 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006298/0.4042, allocations: 395.5 kB / 482.3 MB, free: 81.09 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002416/0.4044, allocations: 0.5193 MB / 482.8 MB, free: 80.56 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/0.4173, allocations: 13.72 MB / 496.5 MB, free: 66.82 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03099/0.4483, allocations: 42.75 MB / 0.5266 GB, free: 23.71 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006757/0.455, allocations: 7.979 MB / 0.5344 GB, free: 16.97 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002174/0.4572, allocations: 2.803 MB / 0.5372 GB, free: 14.17 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001705/0.4574, allocations: 94.92 kB / 0.5373 GB, free: 14.07 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.4574, allocations: 77.52 kB / 0.5373 GB, free: 13.99 MB / 410.8 MB Notification: Performance of pre-optimization done (n=384): time 5.02e-06/0.4574, allocations: 4 kB / 0.5373 GB, free: 13.98 MB / 410.8 MB Notification: Performance of matching and sorting (n=392): time 0.01479/0.4722, allocations: 14.7 MB / 0.5517 GB, free: 15.42 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.4722, allocations: 90.48 kB / 0.5518 GB, free: 15.32 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003234/0.4755, allocations: 3.738 MB / 0.5554 GB, free: 11.58 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/0.4756, allocations: 93.69 kB / 0.5555 GB, free: 11.48 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.4773, allocations: 4.171 MB / 0.5596 GB, free: 7.305 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006646/0.478, allocations: 1.39 MB / 0.5609 GB, free: 5.93 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001085/0.4791, allocations: 1.164 MB / 0.5621 GB, free: 4.754 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 6.481e-05/0.4791, allocations: 305.1 kB / 0.5624 GB, free: 4.453 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002592/0.4817, allocations: 2.596 MB / 0.5649 GB, free: 1.848 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003481/0.4852, allocations: 5.109 MB / 0.5699 GB, free: 11.56 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006773/0.492, allocations: 8.348 MB / 0.578 GB, free: 2.023 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.549e-05/0.492, allocations: 24 kB / 0.5781 GB, free: 2 MB / 442.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.008545/0.5006, allocations: 8.641 MB / 0.5865 GB, free: 9.328 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.5006, allocations: 40 kB / 0.5865 GB, free: 9.289 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.795e-05/0.5007, allocations: 84.88 kB / 0.5866 GB, free: 9.207 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.5019, allocations: 0.83 MB / 0.5874 GB, free: 8.379 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002296/0.5042, allocations: 1.376 MB / 0.5888 GB, free: 7 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006702/0.5109, allocations: 7.387 MB / 0.596 GB, free: 15.5 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/0.5127, allocations: 335.4 kB / 0.5963 GB, free: 15.18 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002786/0.513, allocations: 316.1 kB / 0.5966 GB, free: 14.87 MB / 474.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.003832/0.5168, allocations: 3.513 MB / 0.6 GB, free: 11.34 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004661/0.5173, allocations: 429.2 kB / 0.6005 GB, free: 10.92 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006311/0.5236, allocations: 5.953 MB / 0.6063 GB, free: 4.93 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.5236, allocations: 40 kB / 0.6063 GB, free: 4.891 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.5236, allocations: 8 kB / 0.6063 GB, free: 4.883 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.357e-05/0.5236, allocations: 23.86 kB / 0.6063 GB, free: 4.859 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01475/0.5384, allocations: 14.32 MB / 0.6203 GB, free: 6.496 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.5384, allocations: 8 kB / 0.6203 GB, free: 6.488 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.5398, allocations: 0.6982 MB / 0.621 GB, free: 5.789 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00107/0.5409, allocations: 0.6975 MB / 0.6217 GB, free: 5.09 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/0.541, allocations: 87.97 kB / 0.6218 GB, free: 5.004 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1556/0.6966, allocations: 6.419 MB / 0.628 GB, free: 161 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.6966, allocations: 5.625 kB / 0.6281 GB, free: 161 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008092/0.7047, allocations: 8.743 MB / 0.6366 GB, free: 158.8 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.7061, allocations: 0.858 MB / 0.6374 GB, free: 158.6 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003742/0.7065, allocations: 71.03 kB / 0.6375 GB, free: 158.5 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.7075, allocations: 187.1 kB / 0.6377 GB, free: 158.5 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000314/0.7078, allocations: 285.5 kB / 0.6379 GB, free: 158.4 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/0.708, allocations: 117.4 kB / 0.6381 GB, free: 158.4 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002306/0.7103, allocations: 2.406 MB / 0.6404 GB, free: 157.5 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.7103, allocations: 0 / 0.6404 GB, free: 157.5 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.003603/0.7139, allocations: 1.548 MB / 0.6419 GB, free: 157.4 MB / 490.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.007413/0.7213, allocations: 9.472 MB / 0.6512 GB, free: 153.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.005751/0.727, allocations: 6.27 MB / 0.6573 GB, free: 148 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.727, allocations: 3.938 kB / 0.6573 GB, free: 148 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002243/0.7293, allocations: 2.72 MB / 0.66 GB, free: 145.6 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.7316, allocations: 0.9751 MB / 0.6609 GB, free: 144.9 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05259/0.7841, allocations: 52.61 MB / 0.7123 GB, free: 91.54 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003359/0.7875, allocations: 5.525 MB / 0.7177 GB, free: 85.96 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.002592/0.7901, allocations: 1.873 MB / 0.7195 GB, free: 84.08 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002194/0.7923, allocations: 3.234 MB / 0.7227 GB, free: 80.85 MB / 490.8 MB Notification: Performance of SimCode: time 1.783e-06/0.7923, allocations: 4 kB / 0.7227 GB, free: 80.84 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2421/1.034, allocations: 122.9 MB / 0.8427 GB, free: 160.6 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/11.3, allocations: 8.703 kB / 0.8427 GB, free: 160.6 MB / 0.4949 GB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv","/var/lib/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv. Warning: Get data of variable quadraticSpeedDependentTorqueQS.phi from file Modelica_trunk_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.080593388527632]