Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.00106, allocations: 94.3 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 179.8 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.263/1.263, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002351/0.0002351, allocations: 11.22 kB / 300.7 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08392/0.08417, allocations: 50.42 MB / 351.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02415/0.1084, allocations: 22.93 MB / 374.1 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01569/0.1241, allocations: 7.973 MB / 382.1 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005931/0.1301, allocations: 183.4 kB / 382.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006883/0.137, allocations: 1.671 MB / 383.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009993/0.147, allocations: 2.778 MB / 386.7 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004983/0.152, allocations: 1.42 MB / 388.1 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01324/0.1653, allocations: 8.026 MB / 396.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02811/0.1934, allocations: 17.16 MB / 413.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005036/0.1985, allocations: 3.539 MB / 416.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005457/0.204, allocations: 4 MB / 420.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00125/0.2053, allocations: 0.5938 MB / 421.4 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002371/0.2076, allocations: 0.8902 MB / 422.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001499/0.2091, allocations: 1.748 MB / 424.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002164/0.2113, allocations: 1.954 MB / 426 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1765/0.3878, allocations: 17.36 MB / 443.4 MB, free: 17.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3878, allocations: 0 / 443.4 MB, free: 17.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.062e-06/0.3879, allocations: 4.969 kB / 443.4 MB, free: 17.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006006/0.3885, allocations: 0 / 443.4 MB, free: 17.4 MB / 350.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.02717/0.4157, allocations: 9.842 MB / 453.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.4157, allocations: 11.31 kB / 453.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02896/0.4447, allocations: 5.536 MB / 458.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0153/0.46, allocations: 6.066 MB / 464.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000716/0.4608, allocations: 0.7029 MB / 465.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003989/0.4648, allocations: 0.9165 MB / 466.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03094/0.4957, allocations: 14.92 MB / 481.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002341/0.496, allocations: 22.2 kB / 481.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001374/0.4974, allocations: 391.1 kB / 481.8 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003686/0.4977, allocations: 0.5211 MB / 482.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02407/0.5218, allocations: 13.65 MB / 495.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07453/0.5964, allocations: 47.73 MB / 0.5309 GB, free: 10.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0199/0.6163, allocations: 28.53 MB / 0.5588 GB, free: 9.902 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007183/0.6171, allocations: 237.2 kB / 0.559 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.415e-05/0.6172, allocations: 81.09 kB / 0.5591 GB, free: 9.559 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.271e-06/0.6172, allocations: 2.078 kB / 0.5591 GB, free: 9.559 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02855/0.6458, allocations: 14.6 MB / 0.5734 GB, free: 10.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.492e-05/0.6459, allocations: 94.48 kB / 0.5735 GB, free: 10.79 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005415/0.6513, allocations: 3.54 MB / 0.5769 GB, free: 7.258 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003157/0.6516, allocations: 89.7 kB / 0.577 GB, free: 7.164 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002642/0.6543, allocations: 4.05 MB / 0.581 GB, free: 3.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00121/0.6555, allocations: 1.341 MB / 0.5823 GB, free: 1.762 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/0.6558, allocations: 120 kB / 0.5824 GB, free: 1.645 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003229/0.6561, allocations: 0.5462 MB / 0.5829 GB, free: 1.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2452/0.9013, allocations: 2.576 MB / 0.5854 GB, free: 152.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006783/0.9081, allocations: 5.043 MB / 0.5904 GB, free: 149.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005555/0.9137, allocations: 3.772 MB / 0.594 GB, free: 148 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.716e-05/0.9138, allocations: 23.56 kB / 0.5941 GB, free: 148 MB / 462.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01268/0.9264, allocations: 8.587 MB / 0.6024 GB, free: 144.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.694e-05/0.9265, allocations: 42.88 kB / 0.6025 GB, free: 144.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/0.9267, allocations: 85.66 kB / 0.6026 GB, free: 144.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/0.9288, allocations: 0.8248 MB / 0.6034 GB, free: 144.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004445/0.9333, allocations: 1.378 MB / 0.6047 GB, free: 144.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008442/0.9417, allocations: 7.162 MB / 0.6117 GB, free: 140.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003953/0.9457, allocations: 325.8 kB / 0.612 GB, free: 140.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005891/0.9463, allocations: 310.3 kB / 0.6123 GB, free: 140.4 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (724): * Single equations (assignments): 723 * 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%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005728/0.9521, allocations: 3.512 MB / 0.6157 GB, free: 138.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007779/0.9528, allocations: 400.8 kB / 0.6161 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008642/0.9615, allocations: 5.99 MB / 0.622 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/0.9615, allocations: 40 kB / 0.622 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.9616, allocations: 10.44 kB / 0.622 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.268e-05/0.9616, allocations: 26.59 kB / 0.6221 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02148/0.9831, allocations: 14.84 MB / 0.6365 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.9831, allocations: 4 kB / 0.6366 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002529/0.9857, allocations: 0.6982 MB / 0.6372 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0018/0.9875, allocations: 0.6919 MB / 0.6379 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002053/0.9877, allocations: 79.98 kB / 0.638 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007038/0.9947, allocations: 6.335 MB / 0.6442 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.9948, allocations: 11.94 kB / 0.6442 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01029/1.005, allocations: 9.153 MB / 0.6531 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/1.007, allocations: 0.8941 MB / 0.654 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004927/1.008, allocations: 79.98 kB / 0.6541 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001719/1.009, allocations: 183.9 kB / 0.6542 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003999/1.01, allocations: 266.6 kB / 0.6545 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002202/1.01, allocations: 115.7 kB / 0.6546 GB, free: 101.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0032/1.013, allocations: 2.369 MB / 0.6569 GB, free: 98.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.013, allocations: 0 / 0.6569 GB, free: 98.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0048/1.018, allocations: 1.549 MB / 0.6584 GB, free: 97.25 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000467/1.018, allocations: 260.2 kB / 0.6587 GB, free: 96.99 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008016/1.026, allocations: 6.481 MB / 0.665 GB, free: 90.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/1.026, allocations: 0 / 0.665 GB, free: 90.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003379/1.03, allocations: 2.922 MB / 0.6679 GB, free: 87.57 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003453/1.033, allocations: 0.8475 MB / 0.6687 GB, free: 86.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/1.056, allocations: 18.89 MB / 0.6871 GB, free: 67.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005032/1.061, allocations: 6.119 MB / 0.6931 GB, free: 61.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005009/1.066, allocations: 1.877 MB / 0.695 GB, free: 59.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009397/1.067, allocations: 351.4 kB / 0.6953 GB, free: 59.37 MB / 462.1 MB Notification: Performance of SimCode: time 5.51e-07/1.067, allocations: 0 / 0.6953 GB, free: 59.37 MB / 462.1 MB Notification: Performance of Templates: time 0.28/1.347, allocations: 57.89 MB / 0.7518 GB, free: 142.2 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches