Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0009099/0.0009099, allocations: 96.62 kB / 17.3 MB, free: 6.391 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.000911/0.000911, allocations: 176.4 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005391/0.0005391, allocations: 23.98 kB / 281.4 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08951/0.09006, allocations: 47.58 MB / 329 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0299/0.12, allocations: 27.45 MB / 356.4 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01739/0.1375, allocations: 8.398 MB / 364.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005731/0.1432, allocations: 179.4 kB / 365 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006813/0.1501, allocations: 1.781 MB / 366.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0119/0.162, allocations: 2.757 MB / 369.5 MB, free: 11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005961/0.168, allocations: 1.587 MB / 371.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1964/0.3644, allocations: 10.56 MB / 381.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03338/0.3978, allocations: 21.45 MB / 403.1 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008789/0.4067, allocations: 3.948 MB / 407.1 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008412/0.4151, allocations: 4.905 MB / 412 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002283/0.4174, allocations: 0.6082 MB / 412.6 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003638/0.4211, allocations: 0.9696 MB / 413.6 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002274/0.4234, allocations: 2.007 MB / 415.6 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007571/0.431, allocations: 4.852 MB / 420.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02235/0.4534, allocations: 19.89 MB / 440.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4534, allocations: 0 / 440.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.26e-06/0.4535, allocations: 3.938 kB / 440.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000587/0.4541, allocations: 7.688 kB / 440.3 MB, free: 13.3 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02744/0.4815, allocations: 10.25 MB / 450.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.4816, allocations: 8.031 kB / 450.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0475/0.5291, allocations: 8.613 MB / 459.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01155/0.5407, allocations: 5.903 MB / 465.1 MB, free: 4.816 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007115/0.5414, allocations: 0.7404 MB / 465.9 MB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003294/0.5447, allocations: 0.98 MB / 466.8 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0359/0.5806, allocations: 16.57 MB / 483.4 MB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000275/0.5809, allocations: 19.91 kB / 483.4 MB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001556/0.5825, allocations: 409.6 kB / 483.8 MB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000559/0.5831, allocations: 0.6106 MB / 484.4 MB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03024/0.6133, allocations: 15.96 MB / 0.4887 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3882/1.002, allocations: 52.25 MB / 0.5397 GB, free: 126.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02952/1.031, allocations: 52.22 MB / 0.5907 GB, free: 77.15 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004636/1.036, allocations: 3.456 MB / 0.5941 GB, free: 77.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01316/1.049, allocations: 9.421 MB / 0.6033 GB, free: 76.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/1.049, allocations: 64.98 kB / 0.6033 GB, free: 76.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.859e-06/1.049, allocations: 0.9688 kB / 0.6033 GB, free: 76.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02383/1.073, allocations: 12.9 MB / 0.6159 GB, free: 70.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/1.073, allocations: 79.97 kB / 0.616 GB, free: 70.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005032/1.078, allocations: 4.065 MB / 0.62 GB, free: 69.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002788/1.078, allocations: 68.95 kB / 0.62 GB, free: 69.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001986/1.08, allocations: 4.631 MB / 0.6246 GB, free: 65.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006994/1.081, allocations: 0.9901 MB / 0.6255 GB, free: 65.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005058/1.082, allocations: 484.7 kB / 0.626 GB, free: 64.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.298e-05/1.082, allocations: 305.1 kB / 0.6263 GB, free: 64.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002984/1.085, allocations: 2.441 MB / 0.6287 GB, free: 63.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004256/1.089, allocations: 5.6 MB / 0.6341 GB, free: 58.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00788/1.097, allocations: 8.691 MB / 0.6426 GB, free: 50.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-05/1.097, allocations: 32.41 kB / 0.6427 GB, free: 50.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01202/1.109, allocations: 8.743 MB / 0.6512 GB, free: 42.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.904e-05/1.109, allocations: 48 kB / 0.6512 GB, free: 42.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/1.109, allocations: 112 kB / 0.6513 GB, free: 42.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002085/1.111, allocations: 0.8493 MB / 0.6522 GB, free: 41.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004146/1.115, allocations: 1.404 MB / 0.6535 GB, free: 40.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008199/1.123, allocations: 7.013 MB / 0.6604 GB, free: 33.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004376/1.128, allocations: 347.3 kB / 0.6607 GB, free: 32.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005746/1.128, allocations: 352 kB / 0.6611 GB, free: 32.48 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00634/1.135, allocations: 3.68 MB / 0.6647 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.136, allocations: 407 kB / 0.665 GB, free: 28.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007593/1.143, allocations: 5.058 MB / 0.67 GB, free: 23.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.701e-05/1.144, allocations: 32 kB / 0.67 GB, free: 23.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/1.144, allocations: 12 kB / 0.67 GB, free: 23.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-05/1.144, allocations: 19.88 kB / 0.67 GB, free: 23.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01706/1.161, allocations: 12.19 MB / 0.682 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/1.161, allocations: 4 kB / 0.682 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/1.163, allocations: 0.5231 MB / 0.6825 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001736/1.164, allocations: 0.6836 MB / 0.6831 GB, free: 9.719 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001657/1.165, allocations: 63.98 kB / 0.6832 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006883/1.172, allocations: 6.159 MB / 0.6892 GB, free: 3.355 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.172, allocations: 4 kB / 0.6892 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/1.182, allocations: 7.323 MB / 0.6964 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001956/1.184, allocations: 0.8199 MB / 0.6972 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006782/1.185, allocations: 56 kB / 0.6972 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001913/1.187, allocations: 163.8 kB / 0.6974 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004426/1.187, allocations: 202 kB / 0.6976 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001798/1.187, allocations: 87.98 kB / 0.6976 GB, free: 10.54 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004361/1.192, allocations: 2.68 MB / 0.7003 GB, free: 7.852 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.192, allocations: 0 / 0.7003 GB, free: 7.852 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005696/1.197, allocations: 1.549 MB / 0.7018 GB, free: 6.305 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005309/1.198, allocations: 226.1 kB / 0.702 GB, free: 6.086 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1789/1.377, allocations: 6.101 MB / 0.708 GB, free: 150.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/1.377, allocations: 1.344 kB / 0.708 GB, free: 150.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005769/1.383, allocations: 2.468 MB / 0.7104 GB, free: 150.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007779/1.39, allocations: 0.8959 MB / 0.7112 GB, free: 150.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03612/1.427, allocations: 20.45 MB / 0.7312 GB, free: 140.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008363/1.435, allocations: 6.207 MB / 0.7373 GB, free: 137.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005505/1.441, allocations: 1.949 MB / 0.7392 GB, free: 137.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009407/1.442, allocations: 326.9 kB / 0.7395 GB, free: 137.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/1.442, allocations: 3.719 kB / 0.7395 GB, free: 137.7 MB / 462.1 MB Notification: Performance of Templates: time 0.08644/1.528, allocations: 56.11 MB / 0.7943 GB, free: 93.08 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches