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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009231/0.000923, allocations: 95.81 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001022/0.001022, allocations: 200.1 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002039/0.0002039, allocations: 8 kB / 307.8 MB, free: 0.7734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08988/0.0901, allocations: 51.52 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2331/0.3232, allocations: 26.89 MB / 386.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01521/0.3385, allocations: 8.34 MB / 394.5 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00416/0.3427, allocations: 202.4 kB / 394.7 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004105/0.3468, allocations: 1.757 MB / 396.5 MB, free: 88 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007491/0.3543, allocations: 2.541 MB / 399 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004094/0.3584, allocations: 1.573 MB / 400.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01108/0.3695, allocations: 9.928 MB / 410.5 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03116/0.4007, allocations: 21.37 MB / 431.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005414/0.4061, allocations: 3.748 MB / 435.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005347/0.4115, allocations: 4.61 MB / 440.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.4126, allocations: 0.5977 MB / 440.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002434/0.415, allocations: 0.9762 MB / 441.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001444/0.4165, allocations: 1.833 MB / 443.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004532/0.421, allocations: 4.604 MB / 448.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/0.4374, allocations: 19.39 MB / 467.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4374, allocations: 0 / 467.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4374, allocations: 3.938 kB / 467.6 MB, free: 15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003214/0.4378, allocations: 0 / 467.6 MB, free: 15 MB / 382.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.025/0.4628, allocations: 9.824 MB / 477.5 MB, free: 5.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.4628, allocations: 8.031 kB / 477.5 MB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0302/0.493, allocations: 5.643 MB / 483.1 MB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01179/0.5049, allocations: 6.137 MB / 489.3 MB, free: 9.223 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006156/0.5055, allocations: 0.7064 MB / 490 MB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002273/0.5078, allocations: 0.9295 MB / 490.9 MB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02597/0.5338, allocations: 15.07 MB / 0.4941 GB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001906/0.534, allocations: 7.906 kB / 0.4941 GB, free: 8.426 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009871/0.535, allocations: 392 kB / 0.4945 GB, free: 8.043 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004587/0.5354, allocations: 0.5156 MB / 0.495 GB, free: 7.523 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02263/0.5581, allocations: 13.73 MB / 0.5084 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.377/0.9351, allocations: 48.19 MB / 0.5555 GB, free: 106.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01533/0.9504, allocations: 28.56 MB / 0.5833 GB, free: 80.42 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004117/0.9546, allocations: 3.074 MB / 0.5863 GB, free: 79.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003365/0.9549, allocations: 323.5 kB / 0.5867 GB, free: 78.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.955, allocations: 73.7 kB / 0.5867 GB, free: 78.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 5.32e-06/0.955, allocations: 4.031 kB / 0.5867 GB, free: 78.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02339/0.9784, allocations: 14.74 MB / 0.6011 GB, free: 71.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.9785, allocations: 102 kB / 0.6012 GB, free: 71.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004068/0.9825, allocations: 3.597 MB / 0.6047 GB, free: 69.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/0.9828, allocations: 88.98 kB / 0.6048 GB, free: 69.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.9843, allocations: 4.041 MB / 0.6088 GB, free: 66.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000695/0.985, allocations: 1.347 MB / 0.6101 GB, free: 65.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005075/0.9855, allocations: 478.8 kB / 0.6105 GB, free: 64.92 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.304e-05/0.9856, allocations: 305.1 kB / 0.6108 GB, free: 64.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003158/0.9887, allocations: 2.589 MB / 0.6134 GB, free: 63.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003754/0.9925, allocations: 5.084 MB / 0.6183 GB, free: 58.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007437/0.9999, allocations: 8.336 MB / 0.6265 GB, free: 49.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.984e-05/1, allocations: 24 kB / 0.6265 GB, free: 49.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01114/1.011, allocations: 8.616 MB / 0.6349 GB, free: 41.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/1.011, allocations: 43.94 kB / 0.6349 GB, free: 41.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.35e-05/1.011, allocations: 84 kB / 0.635 GB, free: 40.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002026/1.013, allocations: 0.8385 MB / 0.6358 GB, free: 40.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003918/1.017, allocations: 1.369 MB / 0.6372 GB, free: 38.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008394/1.026, allocations: 7.12 MB / 0.6441 GB, free: 31.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00326/1.029, allocations: 331.3 kB / 0.6445 GB, free: 31.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003473/1.029, allocations: 308 kB / 0.6447 GB, free: 30.85 MB / 446.1 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.004527/1.034, allocations: 3.505 MB / 0.6482 GB, free: 27.33 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006144/1.034, allocations: 407 kB / 0.6486 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008419/1.043, allocations: 5.98 MB / 0.6544 GB, free: 20.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/1.043, allocations: 40 kB / 0.6544 GB, free: 20.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/1.043, allocations: 8 kB / 0.6544 GB, free: 20.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-05/1.043, allocations: 23.86 kB / 0.6545 GB, free: 20.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01833/1.061, allocations: 15.26 MB / 0.6694 GB, free: 5.395 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/1.061, allocations: 4 kB / 0.6694 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002452/1.064, allocations: 0.6904 MB / 0.67 GB, free: 4.699 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001673/1.065, allocations: 0.7019 MB / 0.6707 GB, free: 3.996 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001861/1.066, allocations: 87.98 kB / 0.6708 GB, free: 3.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007572/1.073, allocations: 6.154 MB / 0.6768 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.073, allocations: 7.938 kB / 0.6768 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/1.086, allocations: 8.721 MB / 0.6854 GB, free: 4.766 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001556/1.087, allocations: 0.8978 MB / 0.6862 GB, free: 3.844 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004483/1.088, allocations: 75.94 kB / 0.6863 GB, free: 3.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/1.089, allocations: 191.9 kB / 0.6865 GB, free: 3.582 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004796/1.09, allocations: 262.7 kB / 0.6867 GB, free: 3.324 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002328/1.09, allocations: 116 kB / 0.6868 GB, free: 3.211 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003368/1.093, allocations: 2.416 MB / 0.6892 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.093, allocations: 7.75 kB / 0.6892 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004541/1.098, allocations: 1.549 MB / 0.6907 GB, free: 15.25 MB / 478.1 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.0005036/1.099, allocations: 271.3 kB / 0.691 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009315/1.108, allocations: 6.497 MB / 0.6973 GB, free: 8.492 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/1.108, allocations: 0 / 0.6973 GB, free: 8.492 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004262/1.112, allocations: 2.948 MB / 0.7002 GB, free: 5.535 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006073/1.118, allocations: 0.9128 MB / 0.7011 GB, free: 4.648 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02535/1.144, allocations: 19.86 MB / 0.7205 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1952/1.339, allocations: 5.966 MB / 0.7263 GB, free: 160.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005619/1.345, allocations: 1.881 MB / 0.7282 GB, free: 160.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/1.346, allocations: 348.3 kB / 0.7285 GB, free: 160.3 MB / 494.1 MB Notification: Performance of SimCode: time 6.21e-07/1.346, allocations: 0 / 0.7285 GB, free: 160.3 MB / 494.1 MB Notification: Performance of Templates: time 0.09013/1.436, allocations: 59.87 MB / 0.787 GB, free: 124.1 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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) 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.0.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) Reference file matches