Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0014/0.0014, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.42/1.42, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 65.7 kB / 307.9 MB, free: 480 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1079, allocations: 50.54 MB / 358.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2186/0.3265, allocations: 28.62 MB / 387.1 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01825/0.3448, allocations: 8.487 MB / 395.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007647/0.3525, allocations: 220.9 kB / 395.8 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02031/0.3729, allocations: 8.147 MB / 403.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01219/0.3851, allocations: 2.796 MB / 406.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00638/0.3915, allocations: 1.869 MB / 408.6 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01541/0.407, allocations: 9.955 MB / 418.5 MB, free: 56 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03542/0.4424, allocations: 21.43 MB / 440 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01045/0.4529, allocations: 5.346 MB / 445.3 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01242/0.4654, allocations: 6.093 MB / 451.4 MB, free: 15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005059/0.4705, allocations: 1.539 MB / 453 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008109/0.4786, allocations: 1.941 MB / 454.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006485/0.4852, allocations: 2.981 MB / 457.9 MB, free: 8.535 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01308/0.4983, allocations: 5.856 MB / 463.7 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02924/0.5276, allocations: 20.52 MB / 484.3 MB, free: 14.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/0.5276, allocations: 4 kB / 484.3 MB, free: 14.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.5276, allocations: 0 / 484.3 MB, free: 14.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006056/0.5282, allocations: 0 / 484.3 MB, free: 14.07 MB / 398.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.04107/0.5693, allocations: 11.91 MB / 496.2 MB, free: 2.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.5694, allocations: 11.97 kB / 496.2 MB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03341/0.6028, allocations: 5.6 MB / 0.49 GB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01497/0.6178, allocations: 6.125 MB / 0.496 GB, free: 6.254 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009628/0.6188, allocations: 0.7025 MB / 0.4967 GB, free: 5.551 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004222/0.6231, allocations: 0.9296 MB / 0.4976 GB, free: 4.621 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04114/0.6642, allocations: 15.07 MB / 0.5123 GB, free: 5.473 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004787/0.6647, allocations: 19.8 kB / 0.5123 GB, free: 5.453 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003105/0.6679, allocations: 395.9 kB / 0.5127 GB, free: 5.066 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006519/0.6685, allocations: 0.5117 MB / 0.5132 GB, free: 4.551 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03591/0.7044, allocations: 13.73 MB / 0.5266 GB, free: 6.789 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4645/1.169, allocations: 48.06 MB / 0.5736 GB, free: 104.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01703/1.186, allocations: 28.59 MB / 0.6015 GB, free: 75.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004592/1.191, allocations: 3.075 MB / 0.6045 GB, free: 74.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004805/1.191, allocations: 324.4 kB / 0.6048 GB, free: 73.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.388e-05/1.191, allocations: 77.95 kB / 0.6049 GB, free: 73.87 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 7.344e-06/1.191, allocations: 0 / 0.6049 GB, free: 73.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02966/1.221, allocations: 14.79 MB / 0.6193 GB, free: 61.74 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/1.221, allocations: 90.48 kB / 0.6194 GB, free: 61.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004761/1.226, allocations: 3.603 MB / 0.6229 GB, free: 58.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000666/1.226, allocations: 93.69 kB / 0.623 GB, free: 57.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001717/1.228, allocations: 4.037 MB / 0.6269 GB, free: 53.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001205/1.229, allocations: 1.343 MB / 0.6283 GB, free: 52.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001663/1.231, allocations: 1.164 MB / 0.6294 GB, free: 51.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.514e-05/1.231, allocations: 305.1 kB / 0.6297 GB, free: 51.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003243/1.234, allocations: 2.592 MB / 0.6322 GB, free: 48.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004239/1.239, allocations: 5.088 MB / 0.6372 GB, free: 42.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008294/1.247, allocations: 8.344 MB / 0.6453 GB, free: 32.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.135e-05/1.247, allocations: 24 kB / 0.6454 GB, free: 32.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0139/1.261, allocations: 8.628 MB / 0.6538 GB, free: 24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.691e-05/1.261, allocations: 40 kB / 0.6538 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/1.261, allocations: 84 kB / 0.6539 GB, free: 23.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002127/1.263, allocations: 0.8575 MB / 0.6547 GB, free: 23.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004476/1.268, allocations: 1.373 MB / 0.6561 GB, free: 21.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008791/1.277, allocations: 7.685 MB / 0.6636 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004397/1.281, allocations: 327.3 kB / 0.6639 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001011/1.282, allocations: 308 kB / 0.6642 GB, free: 13.2 MB / 446.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.005428/1.288, allocations: 3.513 MB / 0.6676 GB, free: 9.668 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/1.289, allocations: 407 kB / 0.668 GB, free: 9.266 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008906/1.297, allocations: 5.992 MB / 0.6739 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-05/1.298, allocations: 40 kB / 0.6739 GB, free: 3.199 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/1.298, allocations: 8 kB / 0.6739 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-05/1.298, allocations: 19.92 kB / 0.6739 GB, free: 3.172 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02983/1.327, allocations: 15.28 MB / 0.6888 GB, free: 3.703 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.79e-05/1.328, allocations: 4 kB / 0.6888 GB, free: 3.699 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002833/1.33, allocations: 0.6943 MB / 0.6895 GB, free: 3.004 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002174/1.333, allocations: 0.7254 MB / 0.6902 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004562/1.333, allocations: 83.98 kB / 0.6903 GB, free: 2.195 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009947/1.343, allocations: 6.709 MB / 0.6969 GB, free: 11.35 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.343, allocations: 4 kB / 0.6969 GB, free: 11.35 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/1.358, allocations: 8.758 MB / 0.7054 GB, free: 2.469 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002492/1.361, allocations: 0.8785 MB / 0.7063 GB, free: 1.566 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009002/1.362, allocations: 79.98 kB / 0.7064 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/1.364, allocations: 187.8 kB / 0.7065 GB, free: 1.305 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005505/1.364, allocations: 262.7 kB / 0.7068 GB, free: 1.047 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002431/1.365, allocations: 120 kB / 0.7069 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.2206/1.585, allocations: 2.413 MB / 0.7093 GB, free: 151.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.052e-06/1.585, allocations: 0 / 0.7093 GB, free: 151.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00829/1.594, allocations: 1.555 MB / 0.7108 GB, free: 151.2 MB / 478.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.0009511/1.595, allocations: 269.4 kB / 0.711 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03006/1.625, allocations: 12.86 MB / 0.7236 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.767e-05/1.625, allocations: 2.656 kB / 0.7236 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005804/1.631, allocations: 2.951 MB / 0.7265 GB, free: 148.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005397/1.636, allocations: 0.9657 MB / 0.7274 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03014/1.666, allocations: 15.66 MB / 0.7427 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007948/1.674, allocations: 5.786 MB / 0.7484 GB, free: 134.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001918/1.676, allocations: 387.5 kB / 0.7487 GB, free: 134 MB / 478.1 MB Notification: Performance of SimCode: time 9.91e-07/1.676, allocations: 0 / 0.7487 GB, free: 134 MB / 478.1 MB Notification: Performance of Templates: time 0.3946/2.071, allocations: 150.9 MB / 0.8961 GB, free: 144.1 MB / 478.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches