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.001043/0.001043, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 226.6 MB / 244.3 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007517/0.0007517, allocations: 89.97 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002023/0.0002022, allocations: 8 kB / 356.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1796, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01672/0.1964, allocations: 24.9 MB / 432.4 MB, free: 2.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01342/0.2098, allocations: 7.804 MB / 440.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004355/0.2142, allocations: 195.4 kB / 440.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003754/0.218, allocations: 1.356 MB / 441.8 MB, free: 9.473 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006075/0.2241, allocations: 2.278 MB / 444 MB, free: 7.188 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003049/0.2272, allocations: 1.231 MB / 445.3 MB, free: 5.965 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01065/0.2378, allocations: 10.93 MB / 456.2 MB, free: 11 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0263/0.2642, allocations: 17.37 MB / 473.6 MB, free: 9.531 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005321/0.2695, allocations: 3.827 MB / 477.4 MB, free: 5.691 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006152/0.2757, allocations: 4.405 MB / 481.8 MB, free: 1.27 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001723/0.2774, allocations: 0.5977 MB / 482.4 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003383/0.2808, allocations: 0.9644 MB / 483.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001441/0.2823, allocations: 1.798 MB / 485.2 MB, free: 13.9 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00229/0.2846, allocations: 1.954 MB / 487.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01355/0.2981, allocations: 17.42 MB / 0.4927 GB, free: 10.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2981, allocations: 0 / 0.4927 GB, free: 10.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2982, allocations: 0 / 0.4927 GB, free: 10.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003582/0.2985, allocations: 0 / 0.4927 GB, free: 10.47 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.02411/0.3226, allocations: 9.928 MB / 0.5024 GB, free: 460 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.3227, allocations: 12.03 kB / 0.5024 GB, free: 448 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1875/0.5102, allocations: 5.628 MB / 0.5079 GB, free: 80.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01117/0.5214, allocations: 6.052 MB / 0.5138 GB, free: 76.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004585/0.5219, allocations: 0.7003 MB / 0.5145 GB, free: 75.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003176/0.5251, allocations: 0.9325 MB / 0.5154 GB, free: 75.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02913/0.5542, allocations: 15 MB / 0.5301 GB, free: 63.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002434/0.5545, allocations: 19.8 kB / 0.5301 GB, free: 63.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/0.5557, allocations: 387.7 kB / 0.5305 GB, free: 62.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000359/0.556, allocations: 0.5144 MB / 0.531 GB, free: 62.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02318/0.5792, allocations: 13.66 MB / 0.5443 GB, free: 48.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06206/0.6413, allocations: 48.15 MB / 0.5913 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02009/0.6615, allocations: 28.54 MB / 0.6192 GB, free: 15.35 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004808/0.6663, allocations: 3.069 MB / 0.6222 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004127/0.6667, allocations: 325.8 kB / 0.6225 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.172e-05/0.6668, allocations: 69.58 kB / 0.6226 GB, free: 11.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=384): time 5.911e-06/0.6668, allocations: 3.938 kB / 0.6226 GB, free: 11.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=392): time 0.03049/0.6973, allocations: 15.57 MB / 0.6378 GB, free: 12.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.6974, allocations: 90.48 kB / 0.6379 GB, free: 12.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004893/0.7023, allocations: 3.575 MB / 0.6414 GB, free: 8.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003052/0.7026, allocations: 85.7 kB / 0.6414 GB, free: 8.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002501/0.7052, allocations: 4.049 MB / 0.6454 GB, free: 4.336 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001112/0.7063, allocations: 1.343 MB / 0.6467 GB, free: 3.004 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/0.7065, allocations: 120 kB / 0.6468 GB, free: 2.887 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003325/0.7069, allocations: 0.5461 MB / 0.6474 GB, free: 2.332 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003658/0.7106, allocations: 2.559 MB / 0.6499 GB, free: 15.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005097/0.7157, allocations: 5.064 MB / 0.6548 GB, free: 9.527 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004953/0.7206, allocations: 3.761 MB / 0.6585 GB, free: 5.754 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-05/0.7207, allocations: 20 kB / 0.6585 GB, free: 5.734 MB / 458.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01288/0.7336, allocations: 8.575 MB / 0.6669 GB, free: 13.13 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.155e-05/0.7337, allocations: 40 kB / 0.6669 GB, free: 13.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/0.7338, allocations: 84 kB / 0.667 GB, free: 13.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002168/0.736, allocations: 0.8466 MB / 0.6678 GB, free: 12.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/0.7403, allocations: 1.365 MB / 0.6691 GB, free: 10.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/0.7507, allocations: 7.099 MB / 0.6761 GB, free: 3.559 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004531/0.7553, allocations: 331.3 kB / 0.6764 GB, free: 3.234 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000774/0.7561, allocations: 312 kB / 0.6767 GB, free: 2.93 MB / 474.7 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.2178/0.9739, allocations: 3.51 MB / 0.6801 GB, free: 156.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001689/0.9756, allocations: 408.3 kB / 0.6805 GB, free: 156.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/0.9876, allocations: 5.959 MB / 0.6863 GB, free: 154.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-05/0.9877, allocations: 42.61 kB / 0.6864 GB, free: 154.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.647e-05/0.9877, allocations: 7.438 kB / 0.6864 GB, free: 154.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.74e-05/0.9877, allocations: 22 kB / 0.6864 GB, free: 154.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02181/1.01, allocations: 15.23 MB / 0.7013 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/1.01, allocations: 3.875 kB / 0.7013 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002379/1.012, allocations: 0.694 MB / 0.702 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001705/1.014, allocations: 0.6947 MB / 0.7026 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/1.014, allocations: 82.59 kB / 0.7027 GB, free: 148.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007282/1.021, allocations: 6.147 MB / 0.7087 GB, free: 144.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.021, allocations: 7.906 kB / 0.7087 GB, free: 144.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01034/1.032, allocations: 8.684 MB / 0.7172 GB, free: 140.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/1.033, allocations: 0.896 MB / 0.7181 GB, free: 139.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004081/1.034, allocations: 74 kB / 0.7181 GB, free: 139.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/1.035, allocations: 186 kB / 0.7183 GB, free: 139.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003511/1.036, allocations: 266.6 kB / 0.7186 GB, free: 139.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.036, allocations: 118 kB / 0.7187 GB, free: 139 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003105/1.039, allocations: 2.381 MB / 0.721 GB, free: 136.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.039, allocations: 6.531 kB / 0.721 GB, free: 136.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004201/1.043, allocations: 1.555 MB / 0.7225 GB, free: 135.2 MB / 474.7 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.0004788/1.044, allocations: 273.2 kB / 0.7228 GB, free: 134.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007787/1.051, allocations: 6.455 MB / 0.7291 GB, free: 128.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/1.051, allocations: 4.375 kB / 0.7291 GB, free: 128.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003318/1.055, allocations: 2.932 MB / 0.732 GB, free: 125.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/1.059, allocations: 0.9201 MB / 0.7329 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02034/1.079, allocations: 18.72 MB / 0.7512 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004017/1.083, allocations: 5.795 MB / 0.7568 GB, free: 99.97 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/1.084, allocations: 383.4 kB / 0.7572 GB, free: 99.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.724e-06/1.084, allocations: 3.938 kB / 0.7572 GB, free: 99.59 MB / 474.7 MB Notification: Performance of Templates: time 0.3678/1.452, allocations: 149.9 MB / 0.9036 GB, free: 119.4 MB / 474.7 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