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.001677/0.001677, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 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.001914/0.001914, allocations: 213.7 kB / 23.73 MB, free: 4.406 MB / 14.72 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 1.474/1.474, allocations: 230.5 MB / 257.4 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001965/0.001965, allocations: 59.91 kB / 378.3 MB, free: 2.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2367, allocations: 53.4 MB / 431.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03152/0.2683, allocations: 24.63 MB / 456.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01725/0.2855, allocations: 8.162 MB / 464.5 MB, free: 5.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004815/0.2903, allocations: 258.8 kB / 464.7 MB, free: 5.336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01986/0.3102, allocations: 7.632 MB / 472.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01007/0.3203, allocations: 2.836 MB / 475.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005874/0.3261, allocations: 1.861 MB / 477.1 MB, free: 8.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0146/0.3407, allocations: 10.09 MB / 487.1 MB, free: 14.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02432/0.3651, allocations: 13.86 MB / 0.4893 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008476/0.3735, allocations: 5.498 MB / 0.4946 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01023/0.3838, allocations: 5.859 MB / 0.5004 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003701/0.3875, allocations: 1.539 MB / 0.5019 GB, free: 3.926 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005311/0.3928, allocations: 1.902 MB / 0.5037 GB, free: 2.023 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004433/0.3972, allocations: 2.996 MB / 0.5066 GB, free: 15.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008974/0.4062, allocations: 4.541 MB / 0.5111 GB, free: 10.46 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02676/0.4329, allocations: 20.77 MB / 0.5314 GB, free: 5.621 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4329, allocations: 4 kB / 0.5314 GB, free: 5.617 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4329, allocations: 3.938 kB / 0.5314 GB, free: 5.613 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004775/0.4334, allocations: 0 / 0.5314 GB, free: 5.613 MB / 446.1 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.3898/0.8232, allocations: 12.01 MB / 0.5431 GB, free: 90.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.8232, allocations: 11.91 kB / 0.5431 GB, free: 90.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02915/0.8524, allocations: 5.597 MB / 0.5486 GB, free: 87.33 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/0.8652, allocations: 6.388 MB / 0.5548 GB, free: 81.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005519/0.8657, allocations: 0.6982 MB / 0.5555 GB, free: 80.63 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002881/0.8686, allocations: 0.9215 MB / 0.5564 GB, free: 79.72 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02997/0.8986, allocations: 15.25 MB / 0.5713 GB, free: 64.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004252/0.899, allocations: 19.89 kB / 0.5713 GB, free: 64.36 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0027/0.9017, allocations: 399.7 kB / 0.5717 GB, free: 63.97 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004472/0.9022, allocations: 0.5116 MB / 0.5722 GB, free: 63.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02536/0.9275, allocations: 13.72 MB / 0.5856 GB, free: 49.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06072/0.9882, allocations: 41.33 MB / 0.6259 GB, free: 8.004 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01158/0.9998, allocations: 7.972 MB / 0.6337 GB, free: 1.277 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004298/1.004, allocations: 2.798 MB / 0.6365 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000359/1.004, allocations: 94.94 kB / 0.6366 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.63e-05/1.005, allocations: 73.52 kB / 0.6366 GB, free: 14.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 6.702e-06/1.005, allocations: 0 / 0.6366 GB, free: 14.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.0314/1.036, allocations: 14.68 MB / 0.651 GB, free: 15.67 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/1.036, allocations: 98.41 kB / 0.6511 GB, free: 15.56 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008069/1.044, allocations: 3.547 MB / 0.6545 GB, free: 12.01 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007994/1.045, allocations: 93.69 kB / 0.6546 GB, free: 11.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003805/1.049, allocations: 4.183 MB / 0.6587 GB, free: 7.691 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002301/1.051, allocations: 1.414 MB / 0.6601 GB, free: 6.266 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002937/1.054, allocations: 1.172 MB / 0.6612 GB, free: 5.082 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/1.054, allocations: 309.1 kB / 0.6615 GB, free: 4.777 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004668/1.059, allocations: 2.6 MB / 0.6641 GB, free: 2.172 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007085/1.066, allocations: 5.108 MB / 0.669 GB, free: 11.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0133/1.079, allocations: 8.348 MB / 0.6772 GB, free: 2.344 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.472e-05/1.079, allocations: 28 kB / 0.6772 GB, free: 2.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01834/1.098, allocations: 8.622 MB / 0.6856 GB, free: 9.664 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.000114/1.098, allocations: 40 kB / 0.6857 GB, free: 9.625 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001586/1.098, allocations: 80 kB / 0.6858 GB, free: 9.547 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002499/1.1, allocations: 0.8419 MB / 0.6866 GB, free: 8.707 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005091/1.105, allocations: 1.373 MB / 0.6879 GB, free: 7.332 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01207/1.118, allocations: 7.344 MB / 0.6951 GB, free: 15.87 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004778/1.122, allocations: 327.5 kB / 0.6954 GB, free: 15.55 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001219/1.124, allocations: 308 kB / 0.6957 GB, free: 15.25 MB / 0.5138 GB 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.008611/1.132, allocations: 3.509 MB / 0.6991 GB, free: 11.72 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001756/1.134, allocations: 413.4 kB / 0.6995 GB, free: 11.32 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01309/1.147, allocations: 5.953 MB / 0.7053 GB, free: 5.32 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.091e-05/1.147, allocations: 40 kB / 0.7054 GB, free: 5.281 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.13e-05/1.147, allocations: 8 kB / 0.7054 GB, free: 5.273 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.294e-05/1.147, allocations: 19.92 kB / 0.7054 GB, free: 5.254 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03192/1.179, allocations: 13.02 MB / 0.7181 GB, free: 8.086 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-05/1.179, allocations: 4 kB / 0.7181 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00322/1.182, allocations: 0.6904 MB / 0.7188 GB, free: 7.391 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002213/1.185, allocations: 0.6942 MB / 0.7195 GB, free: 6.695 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004722/1.185, allocations: 95.84 kB / 0.7196 GB, free: 6.602 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/1.195, allocations: 6.396 MB / 0.7258 GB, free: 108 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/1.195, allocations: 7.938 kB / 0.7258 GB, free: 100 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01595/1.211, allocations: 8.748 MB / 0.7344 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002955/1.214, allocations: 0.829 MB / 0.7352 GB, free: 6.395 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009899/1.215, allocations: 80 kB / 0.7352 GB, free: 6.316 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00237/1.218, allocations: 179.9 kB / 0.7354 GB, free: 6.141 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006299/1.218, allocations: 282.5 kB / 0.7357 GB, free: 5.863 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003122/1.219, allocations: 120 kB / 0.7358 GB, free: 5.746 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00531/1.224, allocations: 2.283 MB / 0.738 GB, free: 3.473 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.1e-08/1.224, allocations: 0 / 0.738 GB, free: 3.473 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007445/1.231, allocations: 1.543 MB / 0.7395 GB, free: 1.93 MB / 0.545 GB 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.0007476/1.232, allocations: 259.1 kB / 0.7398 GB, free: 1.664 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01239/1.244, allocations: 6.268 MB / 0.7459 GB, free: 11.39 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.244, allocations: 0 / 0.7459 GB, free: 11.39 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.005376/1.25, allocations: 2.733 MB / 0.7486 GB, free: 8.648 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005296/1.255, allocations: 0.8928 MB / 0.7494 GB, free: 7.781 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2494/1.505, allocations: 16 MB / 0.7651 GB, free: 195.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004959/1.51, allocations: 5.514 MB / 0.7705 GB, free: 194.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004068/1.514, allocations: 1.872 MB / 0.7723 GB, free: 194.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008646/1.514, allocations: 361.7 kB / 0.7726 GB, free: 194.8 MB / 0.5607 GB Notification: Performance of SimCode: time 9.12e-07/1.514, allocations: 0 / 0.7726 GB, free: 194.8 MB / 0.5607 GB Notification: Performance of Templates: time 0.08853/1.603, allocations: 64.53 MB / 0.8356 GB, free: 137.4 MB / 0.5607 GB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] 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: 7.7410378865897655]