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.001573/0.001573, allocations: 117.1 kB / 17.07 MB, free: 5.949 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.001799/0.001799, allocations: 190.9 kB / 18.01 MB, free: 5.039 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009062/0.0009062, allocations: 51.91 kB / 351.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2172, allocations: 49.44 MB / 400.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02826/0.2455, allocations: 28.59 MB / 429.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01561/0.2611, allocations: 8.384 MB / 437.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004358/0.2655, allocations: 215.4 kB / 437.9 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01725/0.2828, allocations: 8.158 MB / 446.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008234/0.291, allocations: 2.789 MB / 448.9 MB, free: 8.531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004557/0.2956, allocations: 1.858 MB / 450.8 MB, free: 6.676 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01123/0.3068, allocations: 9.969 MB / 460.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02518/0.332, allocations: 21.35 MB / 482.1 MB, free: 7.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006543/0.3386, allocations: 5.353 MB / 487.4 MB, free: 1.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008879/0.3475, allocations: 6.031 MB / 493.5 MB, free: 11.76 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003785/0.3513, allocations: 1.539 MB / 495 MB, free: 10.22 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004817/0.3562, allocations: 1.902 MB / 496.9 MB, free: 8.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004109/0.3603, allocations: 2.985 MB / 499.9 MB, free: 5.328 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009194/0.3695, allocations: 5.844 MB / 0.4939 GB, free: 15.46 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02128/0.3908, allocations: 20.67 MB / 0.5141 GB, free: 10.72 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3909, allocations: 0 / 0.5141 GB, free: 10.72 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3909, allocations: 0 / 0.5141 GB, free: 10.72 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004177/0.3913, allocations: 0 / 0.5141 GB, free: 10.72 MB / 446.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.03205/0.4234, allocations: 12.05 MB / 0.5258 GB, free: 14.56 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.4234, allocations: 8.031 kB / 0.5258 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03113/0.4546, allocations: 5.683 MB / 0.5314 GB, free: 8.855 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.4663, allocations: 6.318 MB / 0.5376 GB, free: 2.48 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005282/0.4669, allocations: 0.6985 MB / 0.5382 GB, free: 1.781 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002541/0.4694, allocations: 0.9335 MB / 0.5391 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3536/0.8231, allocations: 15.06 MB / 0.5539 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001997/0.8233, allocations: 14.69 kB / 0.5539 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008963/0.8242, allocations: 388.6 kB / 0.5542 GB, free: 111.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005545/0.8248, allocations: 0.5166 MB / 0.5547 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01853/0.8433, allocations: 13.74 MB / 0.5682 GB, free: 101.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05124/0.8946, allocations: 47.24 MB / 0.6143 GB, free: 54.02 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01349/0.9081, allocations: 28.59 MB / 0.6422 GB, free: 21.74 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003735/0.9119, allocations: 3.092 MB / 0.6452 GB, free: 18.64 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002865/0.9122, allocations: 236.5 kB / 0.6455 GB, free: 18.39 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.755e-05/0.9122, allocations: 73.58 kB / 0.6455 GB, free: 18.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.41e-06/0.9122, allocations: 0 / 0.6455 GB, free: 18.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02448/0.9367, allocations: 14.88 MB / 0.6601 GB, free: 3.738 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.9368, allocations: 102.4 kB / 0.6602 GB, free: 3.625 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004024/0.9408, allocations: 3.604 MB / 0.6637 GB, free: 80 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002627/0.9411, allocations: 94.17 kB / 0.6638 GB, free: 15.99 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002528/0.9436, allocations: 4.183 MB / 0.6679 GB, free: 11.95 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001187/0.9448, allocations: 1.409 MB / 0.6692 GB, free: 10.56 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001622/0.9465, allocations: 1.168 MB / 0.6704 GB, free: 9.379 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.9466, allocations: 301.1 kB / 0.6707 GB, free: 9.082 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003694/0.9503, allocations: 2.592 MB / 0.6732 GB, free: 6.484 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005063/0.9554, allocations: 5.09 MB / 0.6782 GB, free: 228 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009312/0.9647, allocations: 8.337 MB / 0.6863 GB, free: 6.699 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.661e-05/0.9647, allocations: 24 kB / 0.6863 GB, free: 6.676 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01316/0.9779, allocations: 8.66 MB / 0.6948 GB, free: 13.99 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 5.358e-05/0.978, allocations: 43.98 kB / 0.6948 GB, free: 13.95 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.973e-05/0.978, allocations: 80 kB / 0.6949 GB, free: 13.87 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002259/0.9803, allocations: 0.8501 MB / 0.6957 GB, free: 13.02 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004231/0.9846, allocations: 1.365 MB / 0.6971 GB, free: 11.65 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.995, allocations: 7.704 MB / 0.7046 GB, free: 3.809 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00365/0.9987, allocations: 331.5 kB / 0.7049 GB, free: 3.484 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004561/0.9992, allocations: 304 kB / 0.7052 GB, free: 3.188 MB / 0.4982 GB 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.00496/1.004, allocations: 3.515 MB / 0.7086 GB, free: 15.66 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008232/1.005, allocations: 429.2 kB / 0.709 GB, free: 15.24 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009838/1.015, allocations: 5.988 MB / 0.7149 GB, free: 9.215 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-05/1.015, allocations: 40 kB / 0.7149 GB, free: 9.176 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/1.015, allocations: 4 kB / 0.7149 GB, free: 9.172 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.685e-05/1.015, allocations: 23.92 kB / 0.715 GB, free: 9.148 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02186/1.037, allocations: 14.96 MB / 0.7296 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/1.037, allocations: 4 kB / 0.7296 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002636/1.039, allocations: 0.6904 MB / 0.7302 GB, free: 9.438 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001974/1.041, allocations: 0.7059 MB / 0.7309 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002297/1.042, allocations: 87.97 kB / 0.731 GB, free: 8.645 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008813/1.051, allocations: 6.714 MB / 0.7376 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.051, allocations: 7.938 kB / 0.7376 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2099/1.26, allocations: 8.778 MB / 0.7462 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/1.262, allocations: 0.9021 MB / 0.747 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005367/1.263, allocations: 77.52 kB / 0.7471 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001748/1.265, allocations: 182.8 kB / 0.7473 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004262/1.265, allocations: 267.1 kB / 0.7475 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002058/1.265, allocations: 118.7 kB / 0.7476 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002871/1.268, allocations: 2.412 MB / 0.75 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/1.268, allocations: 0 / 0.75 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004124/1.272, allocations: 1.545 MB / 0.7515 GB, free: 173.2 MB / 0.5294 GB 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.0004278/1.273, allocations: 262.5 kB / 0.7518 GB, free: 173 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007701/1.28, allocations: 6.533 MB / 0.7581 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/1.28, allocations: 0 / 0.7581 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003638/1.284, allocations: 2.951 MB / 0.761 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003652/1.288, allocations: 0.9709 MB / 0.762 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01913/1.307, allocations: 15.92 MB / 0.7775 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004512/1.311, allocations: 5.967 MB / 0.7834 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003953/1.315, allocations: 1.876 MB / 0.7852 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008784/1.316, allocations: 349.5 kB / 0.7855 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of SimCode: time 6.51e-07/1.316, allocations: 0 / 0.7855 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.08073/1.397, allocations: 60.01 MB / 0.8441 GB, free: 96.18 MB / 0.5294 GB 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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