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.0008547/0.0008548, allocations: 96.95 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000858/0.0008582, allocations: 204.1 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 247.5 MB, free: 9.688 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003218/0.0003218, allocations: 4 kB / 308.4 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1029, allocations: 51.52 MB / 359.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2175/0.3204, allocations: 26.88 MB / 386.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01906/0.3396, allocations: 8.355 MB / 395.2 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007286/0.3469, allocations: 197.8 kB / 395.4 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006902/0.3538, allocations: 1.765 MB / 397.1 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0119/0.3658, allocations: 2.526 MB / 399.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005749/0.3715, allocations: 1.562 MB / 401.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01541/0.387, allocations: 9.935 MB / 411.2 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0411/0.4281, allocations: 21.37 MB / 432.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00819/0.4363, allocations: 3.756 MB / 436.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008732/0.4451, allocations: 4.606 MB / 440.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003084/0.4482, allocations: 0.5977 MB / 441.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005356/0.4536, allocations: 0.98 MB / 442.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00353/0.4572, allocations: 1.837 MB / 444.3 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009768/0.467, allocations: 4.604 MB / 448.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02095/0.488, allocations: 17.42 MB / 466.3 MB, free: 0.918 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.488, allocations: 4 kB / 466.3 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.488, allocations: 0 / 466.3 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006197/0.4886, allocations: 0 / 466.3 MB, free: 0.9141 MB / 366.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.03094/0.5196, allocations: 9.832 MB / 476.2 MB, free: 6.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.5197, allocations: 11.97 kB / 476.2 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03074/0.5504, allocations: 5.631 MB / 481.8 MB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01369/0.5642, allocations: 6.137 MB / 487.9 MB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009008/0.5651, allocations: 0.7063 MB / 488.6 MB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003774/0.5689, allocations: 0.9333 MB / 489.6 MB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04146/0.6104, allocations: 15.06 MB / 0.4928 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005456/0.611, allocations: 23.89 kB / 0.4928 GB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003574/0.6146, allocations: 392 kB / 0.4932 GB, free: 9.945 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006515/0.6153, allocations: 0.5117 MB / 0.4937 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03235/0.6476, allocations: 13.73 MB / 0.5071 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5151/1.163, allocations: 48.18 MB / 0.5542 GB, free: 104.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01897/1.182, allocations: 28.56 MB / 0.5821 GB, free: 79.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004798/1.187, allocations: 3.075 MB / 0.5851 GB, free: 78.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004348/1.187, allocations: 317.7 kB / 0.5854 GB, free: 78.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/1.187, allocations: 75.95 kB / 0.5854 GB, free: 78.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.823e-06/1.187, allocations: 3.938 kB / 0.5854 GB, free: 78.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02827/1.215, allocations: 14.75 MB / 0.5999 GB, free: 72.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/1.216, allocations: 93.39 kB / 0.5999 GB, free: 71.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005125/1.221, allocations: 3.598 MB / 0.6035 GB, free: 70.36 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006525/1.221, allocations: 95.92 kB / 0.6035 GB, free: 70.28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001901/1.223, allocations: 4.04 MB / 0.6075 GB, free: 66.76 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00134/1.225, allocations: 1.351 MB / 0.6088 GB, free: 65.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006204/1.225, allocations: 478 kB / 0.6093 GB, free: 65.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.177e-05/1.225, allocations: 301.1 kB / 0.6096 GB, free: 65.01 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00354/1.229, allocations: 2.589 MB / 0.6121 GB, free: 63.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004506/1.233, allocations: 5.082 MB / 0.617 GB, free: 58.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008536/1.242, allocations: 8.333 MB / 0.6252 GB, free: 51.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.278e-05/1.242, allocations: 24 kB / 0.6252 GB, free: 51.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01379/1.256, allocations: 8.62 MB / 0.6336 GB, free: 42.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.872e-05/1.256, allocations: 43.98 kB / 0.6337 GB, free: 42.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/1.256, allocations: 84 kB / 0.6337 GB, free: 42.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00205/1.258, allocations: 0.8419 MB / 0.6346 GB, free: 41.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004645/1.263, allocations: 1.361 MB / 0.6359 GB, free: 40.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008722/1.272, allocations: 7.122 MB / 0.6429 GB, free: 33.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/1.276, allocations: 327.3 kB / 0.6432 GB, free: 33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0011/1.277, allocations: 312 kB / 0.6435 GB, free: 32.7 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.006616/1.284, allocations: 3.509 MB / 0.6469 GB, free: 29.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.285, allocations: 407 kB / 0.6473 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009118/1.294, allocations: 5.97 MB / 0.6531 GB, free: 22.76 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.698e-05/1.294, allocations: 44 kB / 0.6532 GB, free: 22.72 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/1.294, allocations: 15.94 kB / 0.6532 GB, free: 22.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-05/1.294, allocations: 19.92 kB / 0.6532 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02502/1.319, allocations: 15.25 MB / 0.6681 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/1.319, allocations: 7.938 kB / 0.6681 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/1.322, allocations: 0.6944 MB / 0.6688 GB, free: 6.551 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001867/1.324, allocations: 0.6936 MB / 0.6694 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003998/1.324, allocations: 87.98 kB / 0.6695 GB, free: 5.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007139/1.331, allocations: 6.158 MB / 0.6755 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/1.332, allocations: 8 kB / 0.6755 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/1.345, allocations: 8.732 MB / 0.6841 GB, free: 6.605 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002427/1.348, allocations: 0.8902 MB / 0.6849 GB, free: 5.691 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006914/1.349, allocations: 72 kB / 0.685 GB, free: 5.621 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/1.351, allocations: 183.8 kB / 0.6852 GB, free: 5.441 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005645/1.351, allocations: 266.7 kB / 0.6854 GB, free: 5.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002315/1.352, allocations: 119.9 kB / 0.6856 GB, free: 5.062 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004528/1.356, allocations: 2.416 MB / 0.6879 GB, free: 2.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.356, allocations: 0 / 0.6879 GB, free: 2.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007331/1.364, allocations: 1.552 MB / 0.6894 GB, free: 1.113 MB / 462.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.0008841/1.364, allocations: 280.5 kB / 0.6897 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01132/1.376, allocations: 6.491 MB / 0.696 GB, free: 10.34 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/1.376, allocations: 0 / 0.696 GB, free: 10.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005234/1.381, allocations: 2.947 MB / 0.6989 GB, free: 7.387 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007586/1.389, allocations: 0.9148 MB / 0.6998 GB, free: 6.492 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03285/1.422, allocations: 19.61 MB / 0.719 GB, free: 2.793 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2247/1.646, allocations: 5.787 MB / 0.7246 GB, free: 160.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002006/1.648, allocations: 383.8 kB / 0.725 GB, free: 160.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.343e-06/1.648, allocations: 0 / 0.725 GB, free: 160.9 MB / 494.1 MB Notification: Performance of Templates: time 0.1794/1.828, allocations: 149.6 MB / 0.8711 GB, free: 40.16 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/jenkins1/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/jenkins1/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