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.0007817/0.0007818, allocations: 98.33 kB / 17.31 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.0008248/0.0008248, allocations: 178.4 kB / 18.21 MB, free: 5.551 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.113/1.113, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001996/0.0001996, allocations: 7.938 kB / 302.1 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07/0.07022, allocations: 50.41 MB / 352.5 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1369/0.2071, allocations: 26.85 MB / 379.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01187/0.219, allocations: 8.253 MB / 387.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004052/0.2231, allocations: 198.7 kB / 387.8 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004069/0.2272, allocations: 1.763 MB / 389.6 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005833/0.2331, allocations: 2.521 MB / 392.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002722/0.2358, allocations: 1.55 MB / 393.6 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007542/0.2433, allocations: 9.855 MB / 403.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02541/0.2688, allocations: 21.37 MB / 424.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004494/0.2733, allocations: 3.752 MB / 428.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004241/0.2775, allocations: 4.586 MB / 433.2 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007054/0.2782, allocations: 0.5977 MB / 433.8 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001809/0.28, allocations: 0.9644 MB / 434.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001262/0.2813, allocations: 1.837 MB / 436.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003501/0.2848, allocations: 4.6 MB / 441.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.2967, allocations: 17.41 MB / 458.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2967, allocations: 0 / 458.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2967, allocations: 3.938 kB / 458.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002072/0.2969, allocations: 0 / 458.6 MB, free: 11.47 MB / 366.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.01986/0.3168, allocations: 9.793 MB / 468.4 MB, free: 1.586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.3168, allocations: 12.03 kB / 468.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02579/0.3426, allocations: 5.623 MB / 474 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00813/0.3508, allocations: 6.141 MB / 480.2 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004073/0.3512, allocations: 0.7103 MB / 480.9 MB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001312/0.3525, allocations: 0.9218 MB / 481.8 MB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02061/0.3731, allocations: 15.07 MB / 496.9 MB, free: 4.953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001651/0.3733, allocations: 23.73 kB / 496.9 MB, free: 4.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008472/0.3742, allocations: 399.9 kB / 497.3 MB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003962/0.3746, allocations: 0.5117 MB / 497.8 MB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0187/0.3933, allocations: 13.73 MB / 0.4995 GB, free: 6.266 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2953/0.6885, allocations: 47.78 MB / 0.5462 GB, free: 97.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01219/0.7008, allocations: 28.55 MB / 0.5741 GB, free: 70.39 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003183/0.704, allocations: 3.08 MB / 0.5771 GB, free: 69.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002218/0.7042, allocations: 237.7 kB / 0.5773 GB, free: 69.03 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.7043, allocations: 76.53 kB / 0.5774 GB, free: 68.96 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 5.771e-06/0.7043, allocations: 4 kB / 0.5774 GB, free: 68.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02037/0.7246, allocations: 14.74 MB / 0.5918 GB, free: 60.6 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.7247, allocations: 91.98 kB / 0.5919 GB, free: 60.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003402/0.7281, allocations: 3.593 MB / 0.5954 GB, free: 58.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001665/0.7283, allocations: 90.27 kB / 0.5955 GB, free: 58.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001184/0.7295, allocations: 4.043 MB / 0.5994 GB, free: 55.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005565/0.73, allocations: 1.343 MB / 0.6007 GB, free: 53.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004378/0.7305, allocations: 478.2 kB / 0.6012 GB, free: 53.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 2.847e-05/0.7305, allocations: 305 kB / 0.6015 GB, free: 53.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002604/0.7331, allocations: 2.586 MB / 0.604 GB, free: 51.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003297/0.7364, allocations: 5.082 MB / 0.609 GB, free: 46.44 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006393/0.7428, allocations: 8.334 MB / 0.6171 GB, free: 36.92 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-05/0.7428, allocations: 31.78 kB / 0.6171 GB, free: 36.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.009385/0.7522, allocations: 8.622 MB / 0.6256 GB, free: 28.24 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/0.7523, allocations: 40 kB / 0.6256 GB, free: 28.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.128e-05/0.7523, allocations: 87.98 kB / 0.6257 GB, free: 28.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/0.7541, allocations: 0.8365 MB / 0.6265 GB, free: 27.28 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003362/0.7574, allocations: 1.361 MB / 0.6278 GB, free: 25.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007107/0.7646, allocations: 7.122 MB / 0.6348 GB, free: 18.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002567/0.7671, allocations: 331.1 kB / 0.6351 GB, free: 18.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002956/0.7674, allocations: 304 kB / 0.6354 GB, free: 18.03 MB / 430.1 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 (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.003543/0.771, allocations: 3.517 MB / 0.6388 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004911/0.7715, allocations: 403 kB / 0.6392 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007219/0.7787, allocations: 5.976 MB / 0.645 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.7787, allocations: 40 kB / 0.6451 GB, free: 8.047 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.7788, allocations: 8 kB / 0.6451 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.577e-05/0.7788, allocations: 23.92 kB / 0.6451 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01727/0.7961, allocations: 15.26 MB / 0.66 GB, free: 8.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.7961, allocations: 4 kB / 0.66 GB, free: 8.566 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0023/0.7984, allocations: 0.6865 MB / 0.6607 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/0.8, allocations: 0.6977 MB / 0.6614 GB, free: 7.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001764/0.8002, allocations: 87.97 kB / 0.6615 GB, free: 7.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007357/0.8076, allocations: 6.165 MB / 0.6675 GB, free: 0.793 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.8076, allocations: 7.938 kB / 0.6675 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01056/0.8182, allocations: 8.732 MB / 0.676 GB, free: 7.934 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/0.8195, allocations: 0.8862 MB / 0.6769 GB, free: 7.023 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003744/0.8198, allocations: 75.98 kB / 0.6769 GB, free: 6.949 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.8214, allocations: 195.8 kB / 0.6771 GB, free: 6.758 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003799/0.8218, allocations: 258.7 kB / 0.6774 GB, free: 6.504 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/0.822, allocations: 120 kB / 0.6775 GB, free: 6.387 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002833/0.8249, allocations: 2.411 MB / 0.6798 GB, free: 3.988 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8249, allocations: 0 / 0.6798 GB, free: 3.988 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003882/0.8288, allocations: 1.55 MB / 0.6814 GB, free: 2.441 MB / 462.1 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 (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.000412/0.8292, allocations: 260.1 kB / 0.6816 GB, free: 2.191 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008043/0.8372, allocations: 6.488 MB / 0.6879 GB, free: 11.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.8372, allocations: 4.062 kB / 0.6879 GB, free: 11.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003641/0.8409, allocations: 2.947 MB / 0.6908 GB, free: 8.734 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005243/0.8461, allocations: 0.8981 MB / 0.6917 GB, free: 7.848 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1622/1.008, allocations: 19.57 MB / 0.7108 GB, free: 149.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005156/1.014, allocations: 5.795 MB / 0.7165 GB, free: 149.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/1.015, allocations: 387.8 kB / 0.7168 GB, free: 149.1 MB / 478.1 MB Notification: Performance of SimCode: time 9.22e-07/1.015, allocations: 0 / 0.7168 GB, free: 149.1 MB / 478.1 MB Notification: Performance of Templates: time 0.1089/1.124, allocations: 149.4 MB / 0.8627 GB, free: 17.4 MB / 478.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/jenkins1/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/jenkins1/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