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.00142/0.00142, allocations: 115.4 kB / 17.69 MB, free: 5.312 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.001601/0.001601, allocations: 191 kB / 18.63 MB, free: 4.379 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.314/1.314, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009767/0.0009768, allocations: 49.67 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09255, allocations: 49.45 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2393/0.3319, allocations: 28.57 MB / 380.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01757/0.3495, allocations: 8.407 MB / 388.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006562/0.3561, allocations: 211.4 kB / 388.7 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01698/0.3731, allocations: 8.156 MB / 396.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009709/0.3828, allocations: 2.793 MB / 399.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005212/0.388, allocations: 1.855 MB / 401.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.4003, allocations: 9.958 MB / 411.5 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02568/0.426, allocations: 21.36 MB / 432.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007784/0.4338, allocations: 5.346 MB / 438.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009262/0.4431, allocations: 6.038 MB / 444.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003618/0.4468, allocations: 1.543 MB / 445.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005625/0.4524, allocations: 1.902 MB / 447.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003557/0.456, allocations: 2.981 MB / 450.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008939/0.4649, allocations: 5.841 MB / 456.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02302/0.488, allocations: 20.62 MB / 477.1 MB, free: 7.695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.488, allocations: 0 / 477.1 MB, free: 7.695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.488, allocations: 0 / 477.1 MB, free: 7.695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005644/0.4886, allocations: 0 / 477.1 MB, free: 7.695 MB / 382.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.03702/0.5256, allocations: 11.85 MB / 489 MB, free: 11.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.5257, allocations: 15.97 kB / 489 MB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03152/0.5572, allocations: 5.631 MB / 494.6 MB, free: 6.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0141/0.5714, allocations: 6.293 MB / 0.4892 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006974/0.5721, allocations: 0.7025 MB / 0.4898 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003697/0.5758, allocations: 0.9216 MB / 0.4907 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.038/0.6138, allocations: 15.07 MB / 0.5055 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004757/0.6143, allocations: 15.89 kB / 0.5055 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003956/0.6183, allocations: 392 kB / 0.5058 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006721/0.619, allocations: 0.5155 MB / 0.5063 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03102/0.65, allocations: 13.75 MB / 0.5198 GB, free: 284 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.438/1.088, allocations: 47.1 MB / 0.5658 GB, free: 89.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.014/1.102, allocations: 28.59 MB / 0.5937 GB, free: 60.81 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003893/1.106, allocations: 3.073 MB / 0.5967 GB, free: 59.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003441/1.106, allocations: 245.4 kB / 0.5969 GB, free: 59.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.475e-05/1.106, allocations: 76.14 kB / 0.597 GB, free: 58.97 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 6.322e-06/1.107, allocations: 3.75 kB / 0.597 GB, free: 58.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02334/1.13, allocations: 14.77 MB / 0.6114 GB, free: 45.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/1.13, allocations: 94.48 kB / 0.6115 GB, free: 45.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/1.134, allocations: 3.602 MB / 0.615 GB, free: 41.99 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/1.134, allocations: 89.7 kB / 0.6151 GB, free: 41.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001448/1.136, allocations: 4.037 MB / 0.6191 GB, free: 37.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006777/1.136, allocations: 1.343 MB / 0.6204 GB, free: 36.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001343/1.138, allocations: 1.16 MB / 0.6215 GB, free: 35.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.849e-05/1.138, allocations: 301.1 kB / 0.6218 GB, free: 35.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002984/1.141, allocations: 2.596 MB / 0.6243 GB, free: 32.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00383/1.145, allocations: 5.088 MB / 0.6293 GB, free: 26.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007524/1.152, allocations: 8.344 MB / 0.6374 GB, free: 16.64 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.986e-05/1.152, allocations: 28 kB / 0.6375 GB, free: 16.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01197/1.164, allocations: 8.631 MB / 0.6459 GB, free: 7.949 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.061e-05/1.164, allocations: 40 kB / 0.6459 GB, free: 7.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.676e-05/1.164, allocations: 84 kB / 0.646 GB, free: 7.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/1.166, allocations: 0.8502 MB / 0.6468 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004088/1.17, allocations: 1.373 MB / 0.6482 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00916/1.18, allocations: 7.679 MB / 0.6557 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004947/1.185, allocations: 327.3 kB / 0.656 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001011/1.186, allocations: 308 kB / 0.6563 GB, free: 13.16 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.005816/1.191, allocations: 3.508 MB / 0.6597 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009573/1.192, allocations: 411 kB / 0.6601 GB, free: 9.238 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009599/1.202, allocations: 5.996 MB / 0.666 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/1.202, allocations: 40 kB / 0.666 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/1.202, allocations: 8 kB / 0.666 GB, free: 3.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/1.202, allocations: 19.92 kB / 0.666 GB, free: 3.141 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02705/1.229, allocations: 14.94 MB / 0.6806 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/1.229, allocations: 4 kB / 0.6806 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002562/1.232, allocations: 0.6904 MB / 0.6813 GB, free: 3.445 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001929/1.234, allocations: 0.7098 MB / 0.682 GB, free: 2.734 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002271/1.234, allocations: 95.91 kB / 0.6821 GB, free: 2.641 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008652/1.243, allocations: 6.712 MB / 0.6886 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/1.243, allocations: 7.938 kB / 0.6886 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.013/1.256, allocations: 8.75 MB / 0.6972 GB, free: 2.906 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002854/1.259, allocations: 0.8901 MB / 0.6981 GB, free: 1.992 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008584/1.26, allocations: 72 kB / 0.6981 GB, free: 1.922 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/1.261, allocations: 191.9 kB / 0.6983 GB, free: 1.734 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005543/1.262, allocations: 266.7 kB / 0.6986 GB, free: 1.473 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002309/1.262, allocations: 112 kB / 0.6987 GB, free: 1.363 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.194/1.456, allocations: 2.409 MB / 0.701 GB, free: 154.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.81e-07/1.456, allocations: 0.7812 kB / 0.701 GB, free: 154.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008048/1.464, allocations: 1.544 MB / 0.7025 GB, free: 154.8 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.001131/1.465, allocations: 253.8 kB / 0.7028 GB, free: 154.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01261/1.478, allocations: 6.541 MB / 0.7092 GB, free: 153.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.478, allocations: 1.406 kB / 0.7092 GB, free: 153.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005387/1.483, allocations: 2.949 MB / 0.712 GB, free: 152.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006209/1.49, allocations: 0.955 MB / 0.713 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03399/1.524, allocations: 15.68 MB / 0.7283 GB, free: 145.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009447/1.533, allocations: 5.975 MB / 0.7341 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005491/1.539, allocations: 1.889 MB / 0.736 GB, free: 142.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/1.54, allocations: 344.2 kB / 0.7363 GB, free: 142.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/1.54, allocations: 0 / 0.7363 GB, free: 142.8 MB / 478.1 MB Notification: Performance of Templates: time 0.0906/1.631, allocations: 57.62 MB / 0.7926 GB, free: 89.85 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 -s cvode -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