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.0009554/0.0009554, allocations: 75.7 kB / 21.69 MB, free: 2.844 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.001001/0.001001, allocations: 166.6 kB / 24.99 MB, free: 9.328 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.9086/0.9086, allocations: 177 MB / 205.2 MB, free: 5.137 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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 273 MB, free: 1.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.693e-05/2.885e-05, allocations: 2.312 kB / 273 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1348/0.1349, allocations: 27.92 MB / 301 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01554/0.1504, allocations: 8.385 MB / 309.3 MB, free: 9.785 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003662/0.1541, allocations: 255.3 kB / 309.6 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01069/0.1648, allocations: 8.706 MB / 318.3 MB, free: 4.066 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005867/0.1706, allocations: 2.92 MB / 321.2 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002975/0.1736, allocations: 1.893 MB / 323.1 MB, free: 296 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009388/0.183, allocations: 10.44 MB / 333.6 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01656/0.1995, allocations: 13.92 MB / 347.5 MB, free: 8.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008587/0.2081, allocations: 8.179 MB / 355.7 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00589/0.214, allocations: 5.825 MB / 361.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001744/0.2158, allocations: 1.539 MB / 363 MB, free: 8.609 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002635/0.2184, allocations: 1.921 MB / 364.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001748/0.2201, allocations: 3.09 MB / 368 MB, free: 3.59 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004054/0.2242, allocations: 3.965 MB / 372 MB, free: 15.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008578/0.2328, allocations: 9.929 MB / 381.9 MB, free: 5.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2328, allocations: 3.984 kB / 381.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2328, allocations: 4 kB / 381.9 MB, free: 5.652 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001666/0.233, allocations: 0 / 381.9 MB, free: 5.652 MB / 330.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.01702/0.25, allocations: 12.79 MB / 394.7 MB, free: 8.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.25, allocations: 16.03 kB / 394.7 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01872/0.2687, allocations: 7.042 MB / 401.8 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007566/0.2763, allocations: 6.051 MB / 407.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003541/0.2767, allocations: 0.6988 MB / 408.5 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.2777, allocations: 0.9334 MB / 409.5 MB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/0.2899, allocations: 8.167 MB / 417.6 MB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001499/0.2901, allocations: 15.91 kB / 417.6 MB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006565/0.2907, allocations: 395.9 kB / 418 MB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003286/0.291, allocations: 0.5155 MB / 418.5 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00855/0.2996, allocations: 4.415 MB / 423 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2398/0.5394, allocations: 38.69 MB / 461.6 MB, free: 98.9 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006824/0.5462, allocations: 6.887 MB / 468.5 MB, free: 97.6 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.5479, allocations: 1.375 MB / 469.9 MB, free: 97.32 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000206/0.5481, allocations: 125.1 kB / 470 MB, free: 97.3 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/0.5481, allocations: 73.44 kB / 470.1 MB, free: 97.23 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 4.989e-06/0.5481, allocations: 6.625 kB / 470.1 MB, free: 97.23 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01376/0.5619, allocations: 8.825 MB / 478.9 MB, free: 91.96 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.5619, allocations: 94.48 kB / 479 MB, free: 91.85 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002959/0.5649, allocations: 3.41 MB / 482.4 MB, free: 88.54 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.565, allocations: 89.64 kB / 482.5 MB, free: 88.44 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.5664, allocations: 4.419 MB / 486.9 MB, free: 84.52 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005739/0.5669, allocations: 1.437 MB / 488.4 MB, free: 83.1 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/0.568, allocations: 1.312 MB / 489.7 MB, free: 81.77 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.272e-05/0.568, allocations: 476.8 kB / 490.2 MB, free: 81.3 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.5693, allocations: 0.8354 MB / 491 MB, free: 80.46 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/0.5714, allocations: 4.595 MB / 495.6 MB, free: 74.25 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003959/0.5754, allocations: 6.04 MB / 0.4899 GB, free: 66.59 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.951e-05/0.5754, allocations: 24 kB / 0.4899 GB, free: 66.57 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.00621/0.5816, allocations: 5.299 MB / 0.4951 GB, free: 61.24 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.876e-05/0.5816, allocations: 40 kB / 0.4951 GB, free: 61.2 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.536e-05/0.5817, allocations: 84.09 kB / 0.4952 GB, free: 61.12 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/0.5832, allocations: 0.7987 MB / 0.496 GB, free: 60.32 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002238/0.5855, allocations: 1.373 MB / 0.4973 GB, free: 58.94 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004476/0.5899, allocations: 5.063 MB / 0.5022 GB, free: 53.75 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.5918, allocations: 331.5 kB / 0.5026 GB, free: 53.43 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00026/0.5921, allocations: 311.9 kB / 0.5029 GB, free: 53.12 MB / 378.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.001572/0.5937, allocations: 0.5607 MB / 0.5034 GB, free: 52.55 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006054/0.5943, allocations: 0.5326 MB / 0.5039 GB, free: 52.02 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00421/0.5985, allocations: 3.407 MB / 0.5073 GB, free: 48.57 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.5985, allocations: 43.98 kB / 0.5073 GB, free: 48.53 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.5985, allocations: 11.98 kB / 0.5073 GB, free: 48.52 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.026e-05/0.5985, allocations: 19.92 kB / 0.5073 GB, free: 48.5 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.6105, allocations: 10.77 MB / 0.5178 GB, free: 37.66 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.6105, allocations: 4 kB / 0.5178 GB, free: 37.65 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.6119, allocations: 0.6904 MB / 0.5185 GB, free: 36.96 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002399/0.6143, allocations: 0.6616 MB / 0.5192 GB, free: 36.3 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001859/0.6145, allocations: 91.97 kB / 0.5193 GB, free: 36.21 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003814/0.6183, allocations: 4.523 MB / 0.5237 GB, free: 31.57 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.6183, allocations: 15.94 kB / 0.5237 GB, free: 31.55 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00515/0.6234, allocations: 4.348 MB / 0.5279 GB, free: 27.05 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/0.6245, allocations: 0.7625 MB / 0.5287 GB, free: 26.29 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/0.6248, allocations: 80.03 kB / 0.5288 GB, free: 26.21 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008776/0.6257, allocations: 179.8 kB / 0.5289 GB, free: 26.03 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/0.626, allocations: 286.4 kB / 0.5292 GB, free: 25.75 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.6262, allocations: 123.9 kB / 0.5293 GB, free: 25.63 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001573/0.6277, allocations: 1.549 MB / 0.5308 GB, free: 24.09 MB / 378.8 MB Notification: Performance of sort global known variables: time 5.1e-08/0.6277, allocations: 0 / 0.5308 GB, free: 24.09 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003402/0.6311, allocations: 1.547 MB / 0.5323 GB, free: 22.54 MB / 378.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.0003868/0.6315, allocations: 262 kB / 0.5326 GB, free: 22.29 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.004307/0.6358, allocations: 3.88 MB / 0.5364 GB, free: 18.39 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.6358, allocations: 0.5 kB / 0.5364 GB, free: 18.39 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.6376, allocations: 1.883 MB / 0.5382 GB, free: 16.48 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.6399, allocations: 0.9186 MB / 0.5391 GB, free: 15.61 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/0.6537, allocations: 13.44 MB / 0.5522 GB, free: 1.984 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00162/0.6553, allocations: 2.48 MB / 0.5547 GB, free: 15.47 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.00257/0.6579, allocations: 1.587 MB / 0.5562 GB, free: 13.88 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006831/0.6586, allocations: 356.4 kB / 0.5566 GB, free: 13.53 MB / 394.8 MB Notification: Performance of SimCode: time 1.614e-06/0.6586, allocations: 0 / 0.5566 GB, free: 13.53 MB / 394.8 MB Notification: Performance of Templates: time 0.1984/0.8569, allocations: 55.21 MB / 0.6105 GB, free: 100.3 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5538354648742825]