Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001668/0.001668, allocations: 200.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008517/0.0008517, allocations: 97.09 kB / 296.8 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002458/0.0002459, allocations: 8 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2259, allocations: 51.28 MB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0215/0.2475, allocations: 25.03 MB / 433.1 MB, free: 2.629 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01808/0.2656, allocations: 7.801 MB / 440.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005184/0.2709, allocations: 199.4 kB / 441.1 MB, free: 10.63 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005444/0.2764, allocations: 1.356 MB / 442.5 MB, free: 9.266 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00864/0.285, allocations: 2.31 MB / 444.8 MB, free: 6.949 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004779/0.2898, allocations: 1.24 MB / 446 MB, free: 5.715 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0156/0.3054, allocations: 11.02 MB / 457 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.038/0.3435, allocations: 20.92 MB / 477.9 MB, free: 5.609 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007286/0.3508, allocations: 3.823 MB / 481.8 MB, free: 1.777 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007741/0.3586, allocations: 4.401 MB / 486.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002268/0.3609, allocations: 0.6015 MB / 486.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004234/0.3651, allocations: 0.9645 MB / 487.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002938/0.3681, allocations: 1.795 MB / 489.5 MB, free: 9.988 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00863/0.3768, allocations: 4.408 MB / 493.9 MB, free: 5.555 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0189/0.3957, allocations: 17.42 MB / 0.4994 GB, free: 4.094 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.3958, allocations: 0 / 0.4994 GB, free: 4.094 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3958, allocations: 0 / 0.4994 GB, free: 4.094 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007009/0.3965, allocations: 4 kB / 0.4994 GB, free: 4.09 MB / 378.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.2065/0.603, allocations: 9.82 MB / 0.509 GB, free: 78.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.6031, allocations: 11.81 kB / 0.509 GB, free: 78.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02776/0.6308, allocations: 5.634 MB / 0.5145 GB, free: 76.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.6429, allocations: 6.136 MB / 0.5205 GB, free: 71.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006276/0.6436, allocations: 0.7022 MB / 0.5211 GB, free: 71.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003115/0.6467, allocations: 0.926 MB / 0.522 GB, free: 70.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03/0.6767, allocations: 14.99 MB / 0.5367 GB, free: 55.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000242/0.677, allocations: 19.81 kB / 0.5367 GB, free: 55.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001269/0.6783, allocations: 402.2 kB / 0.5371 GB, free: 54.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003302/0.6786, allocations: 0.5117 MB / 0.5376 GB, free: 54.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02307/0.7017, allocations: 13.65 MB / 0.5509 GB, free: 40.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06544/0.7672, allocations: 48.2 MB / 0.598 GB, free: 7.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01995/0.7872, allocations: 28.53 MB / 0.6258 GB, free: 7.172 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004854/0.7921, allocations: 3.069 MB / 0.6288 GB, free: 4.098 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004786/0.7926, allocations: 322.9 kB / 0.6292 GB, free: 3.738 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.438e-05/0.7926, allocations: 73.58 kB / 0.6292 GB, free: 3.656 MB / 426.7 MB Notification: Performance of pre-optimization done (n=384): time 5.27e-06/0.7927, allocations: 0 / 0.6292 GB, free: 3.656 MB / 426.7 MB Notification: Performance of matching and sorting (n=392): time 0.02933/0.822, allocations: 14.69 MB / 0.6436 GB, free: 4.887 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/0.8221, allocations: 90.48 kB / 0.6437 GB, free: 4.785 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005339/0.8274, allocations: 3.567 MB / 0.6471 GB, free: 1.223 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006608/0.8281, allocations: 89.69 kB / 0.6472 GB, free: 1.129 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/0.8307, allocations: 4.044 MB / 0.6512 GB, free: 13.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001512/0.8322, allocations: 1.346 MB / 0.6525 GB, free: 11.72 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000299/0.8325, allocations: 123.9 kB / 0.6526 GB, free: 11.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003602/0.8329, allocations: 0.5461 MB / 0.6531 GB, free: 11.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004077/0.837, allocations: 2.565 MB / 0.6556 GB, free: 8.473 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005779/0.8428, allocations: 5.06 MB / 0.6606 GB, free: 2.238 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/0.8536, allocations: 8.297 MB / 0.6687 GB, free: 8.754 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.669e-05/0.8538, allocations: 20 kB / 0.6687 GB, free: 8.734 MB / 474.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01502/0.8688, allocations: 8.581 MB / 0.6771 GB, free: 124 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.371e-05/0.8689, allocations: 47.92 kB / 0.6771 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3673/1.236, allocations: 84.92 kB / 0.6772 GB, free: 156.8 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002693/1.239, allocations: 0.8313 MB / 0.678 GB, free: 156.8 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004801/1.244, allocations: 1.365 MB / 0.6794 GB, free: 156.8 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009199/1.253, allocations: 7.102 MB / 0.6863 GB, free: 153.4 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004166/1.257, allocations: 324.9 kB / 0.6866 GB, free: 153.3 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007683/1.258, allocations: 304.3 kB / 0.6869 GB, free: 153.2 MB / 474.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006188/1.264, allocations: 3.513 MB / 0.6903 GB, free: 151.5 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009685/1.265, allocations: 412.9 kB / 0.6907 GB, free: 151.5 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008828/1.274, allocations: 5.948 MB / 0.6965 GB, free: 149.1 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-05/1.274, allocations: 38.59 kB / 0.6966 GB, free: 149.1 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/1.274, allocations: 7.875 kB / 0.6966 GB, free: 149.1 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.388e-05/1.274, allocations: 18.8 kB / 0.6966 GB, free: 149.1 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02207/1.296, allocations: 15.23 MB / 0.7115 GB, free: 141.6 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/1.296, allocations: 14.73 kB / 0.7115 GB, free: 141.6 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/1.299, allocations: 0.6854 MB / 0.7121 GB, free: 141 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001703/1.3, allocations: 0.6904 MB / 0.7128 GB, free: 140.5 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002585/1.301, allocations: 86.61 kB / 0.7129 GB, free: 140.4 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006906/1.308, allocations: 6.157 MB / 0.7189 GB, free: 134.6 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.308, allocations: 4 kB / 0.7189 GB, free: 134.6 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/1.319, allocations: 8.691 MB / 0.7274 GB, free: 126 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00204/1.321, allocations: 0.8928 MB / 0.7283 GB, free: 125.2 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005851/1.321, allocations: 75.98 kB / 0.7284 GB, free: 125.1 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/1.323, allocations: 179.9 kB / 0.7285 GB, free: 124.9 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004975/1.323, allocations: 266.7 kB / 0.7288 GB, free: 124.7 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/1.324, allocations: 112 kB / 0.7289 GB, free: 124.6 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.004044/1.328, allocations: 2.384 MB / 0.7312 GB, free: 122.2 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.483e-06/1.328, allocations: 4 kB / 0.7312 GB, free: 122.2 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.006758/1.334, allocations: 1.561 MB / 0.7327 GB, free: 120.6 MB / 474.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009332/1.335, allocations: 272.3 kB / 0.733 GB, free: 120.4 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.009768/1.345, allocations: 6.461 MB / 0.7393 GB, free: 113.9 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 9.988e-06/1.345, allocations: 4.062 kB / 0.7393 GB, free: 113.9 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004044/1.349, allocations: 2.921 MB / 0.7422 GB, free: 111 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006607/1.356, allocations: 0.916 MB / 0.7431 GB, free: 110.1 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02603/1.382, allocations: 18.73 MB / 0.7614 GB, free: 91.23 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005335/1.387, allocations: 5.795 MB / 0.767 GB, free: 85.39 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001645/1.389, allocations: 387.4 kB / 0.7674 GB, free: 85.02 MB / 474.8 MB Notification: Performance of SimCode: time 7.92e-07/1.389, allocations: 0 / 0.7674 GB, free: 85.02 MB / 474.8 MB Notification: Performance of Templates: time 0.3557/1.745, allocations: 149.5 MB / 0.9134 GB, free: 104.5 MB / 474.8 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches