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.001109/0.001109, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 205.8 kB / 18.27 MB, free: 5.074 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.4 MB / 246.4 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 60.16 kB / 306.5 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08676/0.08799, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1694/0.2574, allocations: 28.09 MB / 385.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01546/0.273, allocations: 8.371 MB / 393.5 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005508/0.2785, allocations: 207.5 kB / 393.7 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01785/0.2964, allocations: 7.739 MB / 401.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008873/0.3053, allocations: 2.51 MB / 403.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004892/0.3102, allocations: 1.744 MB / 405.7 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.3221, allocations: 9.995 MB / 415.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03293/0.355, allocations: 24.68 MB / 440.3 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008547/0.3636, allocations: 5.404 MB / 445.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00947/0.3731, allocations: 6.117 MB / 451.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004046/0.3772, allocations: 1.539 MB / 453.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005604/0.3828, allocations: 1.937 MB / 455.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004358/0.3872, allocations: 2.989 MB / 458.3 MB, free: 7.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009697/0.3969, allocations: 5.856 MB / 464.2 MB, free: 1.461 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01976/0.4167, allocations: 20.53 MB / 484.7 MB, free: 12.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4167, allocations: 4 kB / 484.7 MB, free: 12.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4167, allocations: 0 / 484.7 MB, free: 12.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000392/0.4171, allocations: 0 / 484.7 MB, free: 12.87 MB / 398.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.03152/0.4486, allocations: 11.92 MB / 496.6 MB, free: 0.8555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.4487, allocations: 8.031 kB / 496.6 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02951/0.4782, allocations: 5.604 MB / 0.4905 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01141/0.4897, allocations: 6.125 MB / 0.4965 GB, free: 5.043 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005254/0.4902, allocations: 0.7025 MB / 0.4971 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002497/0.4927, allocations: 0.9218 MB / 0.498 GB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03264/0.5254, allocations: 15.07 MB / 0.5128 GB, free: 4.266 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002479/0.5257, allocations: 19.8 kB / 0.5128 GB, free: 4.246 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001559/0.5272, allocations: 395.9 kB / 0.5132 GB, free: 3.859 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004843/0.5277, allocations: 0.5117 MB / 0.5137 GB, free: 3.344 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02711/0.5548, allocations: 13.73 MB / 0.5271 GB, free: 5.586 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.371/0.9259, allocations: 48.04 MB / 0.574 GB, free: 103.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01419/0.9401, allocations: 28.59 MB / 0.6019 GB, free: 75.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004341/0.9445, allocations: 3.071 MB / 0.6049 GB, free: 73.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003646/0.9449, allocations: 320.6 kB / 0.6052 GB, free: 73.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.945, allocations: 68.83 kB / 0.6053 GB, free: 73.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.032e-06/0.945, allocations: 3.938 kB / 0.6053 GB, free: 73.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02381/0.9688, allocations: 14.74 MB / 0.6197 GB, free: 60.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.9689, allocations: 90.48 kB / 0.6197 GB, free: 60.77 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004015/0.9729, allocations: 3.603 MB / 0.6233 GB, free: 57.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002291/0.9731, allocations: 89.7 kB / 0.6233 GB, free: 57.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001425/0.9745, allocations: 4.04 MB / 0.6273 GB, free: 53.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008463/0.9754, allocations: 1.343 MB / 0.6286 GB, free: 51.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0013/0.9767, allocations: 1.164 MB / 0.6297 GB, free: 50.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.987e-05/0.9768, allocations: 301.1 kB / 0.63 GB, free: 50.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.9797, allocations: 2.592 MB / 0.6326 GB, free: 47.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003828/0.9835, allocations: 5.081 MB / 0.6375 GB, free: 41.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007086/0.9906, allocations: 8.333 MB / 0.6457 GB, free: 31.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.699e-05/0.9906, allocations: 24 kB / 0.6457 GB, free: 31.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0113/1.002, allocations: 8.628 MB / 0.6541 GB, free: 23.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.42e-05/1.002, allocations: 40 kB / 0.6541 GB, free: 23.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.989e-05/1.002, allocations: 84 kB / 0.6542 GB, free: 23.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001939/1.004, allocations: 0.8421 MB / 0.655 GB, free: 22.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003841/1.008, allocations: 1.369 MB / 0.6564 GB, free: 20.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008533/1.016, allocations: 7.615 MB / 0.6638 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003565/1.02, allocations: 327.3 kB / 0.6641 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004306/1.021, allocations: 308 kB / 0.6644 GB, free: 12.44 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.004254/1.025, allocations: 3.51 MB / 0.6679 GB, free: 8.914 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007349/1.026, allocations: 415 kB / 0.6682 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008224/1.034, allocations: 5.961 MB / 0.6741 GB, free: 2.508 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.243e-05/1.034, allocations: 40 kB / 0.6741 GB, free: 2.469 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/1.034, allocations: 12 kB / 0.6741 GB, free: 2.457 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.137e-05/1.034, allocations: 23.91 kB / 0.6741 GB, free: 2.434 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02191/1.056, allocations: 15.26 MB / 0.689 GB, free: 2.984 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/1.056, allocations: 4 kB / 0.689 GB, free: 2.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002636/1.058, allocations: 0.691 MB / 0.6897 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/1.06, allocations: 0.7092 MB / 0.6904 GB, free: 1.578 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002248/1.061, allocations: 83.98 kB / 0.6905 GB, free: 1.496 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008619/1.069, allocations: 6.651 MB / 0.697 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.069, allocations: 7.938 kB / 0.697 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/1.081, allocations: 8.733 MB / 0.7055 GB, free: 1.844 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/1.083, allocations: 0.8785 MB / 0.7064 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004954/1.084, allocations: 80 kB / 0.7065 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/1.086, allocations: 183.8 kB / 0.7066 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005032/1.086, allocations: 262.7 kB / 0.7069 GB, free: 436 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002356/1.086, allocations: 123.9 kB / 0.707 GB, free: 312 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.1842/1.27, allocations: 2.408 MB / 0.7094 GB, free: 151.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.271, allocations: 0 / 0.7094 GB, free: 151.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005764/1.276, allocations: 1.552 MB / 0.7109 GB, free: 151.6 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.000623/1.277, allocations: 265.1 kB / 0.7111 GB, free: 151.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0281/1.305, allocations: 12.85 MB / 0.7237 GB, free: 150.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/1.305, allocations: 0 / 0.7237 GB, free: 150.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004615/1.31, allocations: 2.948 MB / 0.7266 GB, free: 148.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005156/1.315, allocations: 0.9721 MB / 0.7275 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02352/1.338, allocations: 19.79 MB / 0.7468 GB, free: 134.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004599/1.343, allocations: 5.97 MB / 0.7527 GB, free: 129.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00465/1.348, allocations: 1.888 MB / 0.7545 GB, free: 128.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008798/1.349, allocations: 345.3 kB / 0.7548 GB, free: 128.2 MB / 478.1 MB Notification: Performance of SimCode: time 6.01e-07/1.349, allocations: 0 / 0.7548 GB, free: 128.2 MB / 478.1 MB Notification: Performance of Templates: time 0.08497/1.434, allocations: 63.03 MB / 0.8164 GB, free: 68.07 MB / 478.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