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.001039/0.001039, 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.0009087/0.0009087, 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.9135/0.9135, allocations: 177 MB / 204.1 MB, free: 5.77 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.533e-06/1.533e-06, allocations: 0 / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.379e-05/1.532e-05, allocations: 2.844 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.01686/0.01687, allocations: 24.65 MB / 349.2 MB, free: 7.105 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01356/0.03043, allocations: 8.174 MB / 357.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004111/0.03454, allocations: 250.8 kB / 357.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008919/0.04346, allocations: 8.06 MB / 365.7 MB, free: 6.578 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006754/0.05021, allocations: 2.893 MB / 368.6 MB, free: 3.672 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00272/0.05293, allocations: 1.872 MB / 370.5 MB, free: 1.805 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007649/0.06058, allocations: 10.44 MB / 380.9 MB, free: 7.328 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0136/0.07418, allocations: 13.91 MB / 394.8 MB, free: 9.285 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00785/0.08203, allocations: 8.113 MB / 402.9 MB, free: 1.16 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005596/0.08763, allocations: 5.259 MB / 408.2 MB, free: 11.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001764/0.08939, allocations: 1.543 MB / 409.7 MB, free: 10.34 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002235/0.09163, allocations: 1.917 MB / 411.6 MB, free: 8.426 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00158/0.09321, allocations: 3.039 MB / 414.7 MB, free: 5.379 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003329/0.09653, allocations: 3.918 MB / 418.6 MB, free: 1.453 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.1102, allocations: 20.94 MB / 439.5 MB, free: 12.45 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1102, allocations: 4 kB / 439.5 MB, free: 12.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1102, allocations: 0 / 439.5 MB, free: 12.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003456/0.1105, allocations: 0 / 439.5 MB, free: 12.45 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.02089/0.1314, allocations: 11.92 MB / 451.5 MB, free: 452 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.1315, allocations: 11.98 kB / 451.5 MB, free: 440 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2602/0.3916, allocations: 1.535 MB / 453 MB, free: 104.3 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01603/0.4077, allocations: 5.609 MB / 458.6 MB, free: 103.4 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008389/0.416, allocations: 6.391 MB / 465 MB, free: 98.42 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.4163, allocations: 0.6983 MB / 465.7 MB, free: 97.73 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00124/0.4175, allocations: 0.929 MB / 466.6 MB, free: 96.81 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.4328, allocations: 15.26 MB / 481.9 MB, free: 81.46 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001696/0.433, allocations: 15.89 kB / 481.9 MB, free: 81.45 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006118/0.4336, allocations: 391.3 kB / 482.3 MB, free: 81.08 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002319/0.4338, allocations: 0.5233 MB / 482.8 MB, free: 80.55 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0125/0.4463, allocations: 13.73 MB / 496.5 MB, free: 66.8 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03279/0.4791, allocations: 42.74 MB / 0.5266 GB, free: 23.7 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0067/0.4858, allocations: 7.979 MB / 0.5344 GB, free: 16.95 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002214/0.488, allocations: 2.807 MB / 0.5372 GB, free: 14.14 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/0.4882, allocations: 90.94 kB / 0.5373 GB, free: 14.05 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.4882, allocations: 73.58 kB / 0.5373 GB, free: 13.97 MB / 410.8 MB Notification: Performance of pre-optimization done (n=384): time 5.611e-06/0.4883, allocations: 0 / 0.5373 GB, free: 13.97 MB / 410.8 MB Notification: Performance of matching and sorting (n=392): time 0.01559/0.5038, allocations: 14.71 MB / 0.5517 GB, free: 15.4 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.5039, allocations: 102.5 kB / 0.5518 GB, free: 15.29 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003521/0.5074, allocations: 3.731 MB / 0.5554 GB, free: 11.56 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.5076, allocations: 89.7 kB / 0.5555 GB, free: 11.46 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001711/0.5093, allocations: 4.172 MB / 0.5596 GB, free: 7.281 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006951/0.51, allocations: 1.392 MB / 0.5609 GB, free: 5.91 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001101/0.5111, allocations: 1.164 MB / 0.5621 GB, free: 4.734 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 7.304e-05/0.5112, allocations: 309 kB / 0.5624 GB, free: 4.43 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002413/0.5136, allocations: 2.592 MB / 0.5649 GB, free: 1.828 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003733/0.5173, allocations: 5.112 MB / 0.5699 GB, free: 11.54 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006607/0.5239, allocations: 8.348 MB / 0.5781 GB, free: 2.004 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003051/0.5242, allocations: 24 kB / 0.5781 GB, free: 1.98 MB / 442.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.008668/0.5329, allocations: 8.633 MB / 0.5865 GB, free: 9.312 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.5329, allocations: 40.88 kB / 0.5865 GB, free: 9.273 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.207e-05/0.533, allocations: 87.98 kB / 0.5866 GB, free: 9.188 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.5342, allocations: 0.834 MB / 0.5874 GB, free: 8.355 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002281/0.5365, allocations: 1.377 MB / 0.5888 GB, free: 6.977 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006791/0.5433, allocations: 7.385 MB / 0.596 GB, free: 15.48 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.5452, allocations: 335.4 kB / 0.5963 GB, free: 15.15 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000276/0.5455, allocations: 308 kB / 0.5966 GB, free: 14.85 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.004187/0.5497, allocations: 3.509 MB / 0.6 GB, free: 11.32 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004678/0.5502, allocations: 429.2 kB / 0.6005 GB, free: 10.9 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006056/0.5562, allocations: 5.953 MB / 0.6063 GB, free: 4.914 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.5563, allocations: 40 kB / 0.6063 GB, free: 4.875 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.5563, allocations: 8 kB / 0.6063 GB, free: 4.867 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002961/0.5566, allocations: 23.86 kB / 0.6063 GB, free: 4.844 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/0.5715, allocations: 14.33 MB / 0.6203 GB, free: 6.469 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.5716, allocations: 4 kB / 0.6203 GB, free: 6.465 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/0.5732, allocations: 0.6904 MB / 0.621 GB, free: 5.773 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.5742, allocations: 0.6938 MB / 0.6217 GB, free: 5.078 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/0.5743, allocations: 91.97 kB / 0.6218 GB, free: 4.988 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1674/0.7417, allocations: 6.422 MB / 0.628 GB, free: 161.1 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.7417, allocations: 9.375 kB / 0.6281 GB, free: 161.1 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00875/0.7505, allocations: 8.746 MB / 0.6366 GB, free: 158.8 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001686/0.7522, allocations: 0.8524 MB / 0.6374 GB, free: 158.6 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003393/0.7525, allocations: 73.56 kB / 0.6375 GB, free: 158.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009898/0.7535, allocations: 179.6 kB / 0.6377 GB, free: 158.5 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/0.7538, allocations: 289.4 kB / 0.6379 GB, free: 158.5 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.7539, allocations: 120 kB / 0.6381 GB, free: 158.4 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00256/0.7565, allocations: 2.411 MB / 0.6404 GB, free: 157.6 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7565, allocations: 0 / 0.6404 GB, free: 157.6 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.003392/0.7599, allocations: 1.546 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.008417/0.7683, allocations: 9.47 MB / 0.6512 GB, free: 153.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.005845/0.7741, allocations: 6.268 MB / 0.6573 GB, free: 148 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.7741, allocations: 0 / 0.6573 GB, free: 148 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0022/0.7763, allocations: 2.728 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.002332/0.7787, allocations: 0.969 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.04998/0.8287, allocations: 52.61 MB / 0.7123 GB, free: 91.52 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003729/0.8324, allocations: 5.521 MB / 0.7177 GB, free: 85.95 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.00283/0.8352, allocations: 1.88 MB / 0.7195 GB, free: 84.07 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002184/0.8374, allocations: 3.234 MB / 0.7227 GB, free: 80.83 MB / 490.8 MB Notification: Performance of SimCode: time 1.092e-06/0.8374, allocations: 0 / 0.7227 GB, free: 80.83 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2894/1.127, allocations: 122.9 MB / 0.8427 GB, free: 160.8 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/11.52, allocations: 3.438 kB / 0.8427 GB, free: 160.8 MB / 0.4949 GB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.56356178689748]